Initial configuration of OpenVSwitch with Vlans

Sysadmin11

Active Member
Jun 26, 2018
7
0
41
39
I'm setting up Proxmox and I'm lost in OpenVswitch ............. I can't get a configuration to work.

I need my VMs to use 3 different vlans to talk to the outside world, and tyring to configure OpenVswitch. I currently have a fresh install of proxmox and OpenVswitch.

From the web GUI I have

enp2s0 Network Device Active No Autostart No VLAN aware No.
enp4s0 Network Device Active Yes Autostart No VLAN aware No.
vmbr0 Linux Bridge Active Yes Autostart Yest Vlan Aware No. PortSlaves enp4s0 IP address 10.10.120.97 Subnet 255.255.0.0, gateway 10.10.0.1.


What do I need to do next to be able to add NICS with different vlans to my VMs?
 
This is the configuration I have so far. Vlan10 works fine. The other vlans can't see machines outside of the hypervisor that are on the network. Any ideas?

auto lo
iface lo inet loopback

iface enp2s0 inet manual

allow-vmbr1 enp3s0
iface enp3s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr1

auto vmbr0
iface vmbr0 inet static
address 10.10.0.61
netmask 255.255.0.0
bridge_ports enp2s0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
ovs_ports enp3s0 vlan10 vlan20 vlan30 vlan40 vlan50 vlan60

allow-vmbr1 vlan10
iface vlan10 inet static
address 10.10.0.60
netmask 255.255.0.0
gateway 10.10.0.1
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=10

allow-vmbr1 vlan20
iface vlan20 inet static
address 10.20.0.60
netmask 255.255.0.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=20

allow-vmbr1 vlan30
iface vlan30 inet static
address 10.30.0.60
netmask 255.255.0.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=30

allow-vmbr1 vlan40
iface vlan40 inet static
address 10.40.0.60
netmask 255.255.0.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=40

allow-vmbr1 vlan50
iface vlan50 inet static
address 10.50.0.60
netmask 255.255.0.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=50

allow-vmbr1 vlan60
iface vlan60 inet static
address 10.60.0.60
netmask 255.255.0.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=60
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!