[SOLVED] Configuration OVS bond + bridge + internal ports

cmonty14

Well-Known Member
Mar 4, 2014
343
5
58
Hello,

I try to configure an OVS bond + bridge + internal ports with my new Proxmox VE 7.0 installation.
However, this fails although a follow the example available in relevant wiki page.

This is my current /etc/network/interfaces:
Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
        ovs_mtu 1500
#eno1

auto enp4s0f3
iface enp4s0f3 inet manual
        ovs_mtu 1500
#enp4s0f3

auto bond0
iface bond0 inet manual
        ovs_type OVSBond
        ovs_bridge vmbr0
        ovs_bonds eno1 enp4s0f3
        ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
        ovs_mtu 1500
#bond0

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 vlan10 vlan20 vlan30 vlan90 vlan100
        ovs_options tag=10 vlan_mode=native-untagged trunks=20,30,90,100
        ovs_mtu 1500
#vmbr0

auto vlan10
iface vlan10 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=10
        ovs_mtu 1500
        address 192.168.1.11
        netmask 255.255.255.0
        #post-up ip route add 192.168.1.0/24 via 192.168.1.1 dev vlan10
#LAN

auto vlan20
iface vlan20 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=20
        ovs_mtu 1500
        address 192.168.2.11
        netmask 255.255.255.0
#PVEGST

auto vlan30
iface vlan30 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0  
        ovs_options tag=30
        ovs_mtu 1500
        address 192.168.3.11
        netmask 255.255.255.0
#PVEMGRT

auto vlan90
iface vlan90 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=90
        ovs_mtu 1500
        address 192.168.9.11
        netmask 255.255.255.0
#VPN

auto vlan100
iface vlan100 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=100
        ovs_mtu 1500
        address 172.16.10.11
        netmask 255.255.255.0
#DMZ

Please advise why this configuration is not working, means bond0, vmbr0 and all vlans are not getting activated.

THX
 
Last edited:
This configuration is working as expected:
Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eno1
allow-vmbr0 eno1
##eno1

auto enp4s0f3
allow-vmbr0 enp4s0f3
##enp4s0f3

auto bond0
iface bond0 inet manual
        ovs_type OVSBond
        ovs_bridge vmbr0
        ovs_bonds eno1 enp4s0f3
        ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
        ovs_mtu 1500
##bond0

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 vlan20 vlan30
        ovs_mtu 1500
        address 192.168.1.11
        netmask 255.255.255.0
##vmbr0

auto vlan20
iface vlan20 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=20
        ovs_mtu 1500
        address 192.168.2.11
        netmask 255.255.255.0
##PVEGST

auto vlan30
iface vlan30 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=30
        ovs_mtu 1500
        address 192.168.3.11
        netmask 255.255.255.0
##PVEMGRT
 

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!