Network setup with and without ovs

beriapl

Active Member
Jan 22, 2019
23
0
41
41
Hello,

I'm setting up a lab where I want to have "management" for proxmox in separate VLAN, so for basic configuration, my /etc/network/interfaces looks like that:


Code:
auto lo
iface lo inet loopback

iface eno5 inet manual

iface eno6 inet manual

auto vmbr0
iface vmbr0 inet manual
        bridge-ports eno5
        bridge-stp off
        bridge-fd 0
        brindge_vlan_aware yes

auto vmbr0.100
iface vmbr0.100 inet static
        address 192.168.1.10/24
        gateway 192.168.1.254

Switch port is configured as a trunk with vlan100 allowed, and also with vlan110 - iSCSI, and vlan120 - NFS.

Above configuration works fine - I can ping the proxmox VE (6.2-4) and it is good, however, I'm trying to install openvswitch, and after configuration like below - the network doesn't work at all - what I'm doing wrong?


Code:
allow-vmbr0 bond0
iface bond0 inet manual
        ovs_bonds eno5
        ovs_type OVSBond
        ovs_bridge vmbr0
        ovs_options bond_mode=active-backup

allow-vmbr0 vlan100
iface vlan100 inet static
        address  192.168.1.10
        netmask  24
        gateway  192.168.1.254
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=100

allow-ovs vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 vlan100
 
Hi,

why do you like to use OpenVswitch?
We recommend Linux Bride and OVS is only for some edge cases.
 
Mostly for easier multi vlan management on VMs
I don't know what you mean.
Linux Bridge can do the same. And the complex is less because everything is in the kernel.
 
I don't known if you use ifupdown2 for network live reload, but in this case, "allow-xxxx" should be replaced by classic "auto ...".
If the config is done through the gui, it's should already be ok.
 
Well thats, the thing - it doesn't work neither from GUI nor directly from interfaces file.
 

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!