OVS Configuration

twey

Renowned Member
Oct 15, 2016
20
1
68
41
Hi

Is it possible to use a NIC for a communication with a vlan on the Proxmox Host and also use it on a OVS Bond or bind a OVSIntPort to a specific member in a Bond?
My goal is to bind the iSCSI Multipath Traffic to two different NICs and use this NICs also for a OVS Bond (Server has only 2 NICs). So I have to handle all the Traffic with this two NICs.
 
The only possible solution I have found so far is this:

auto lo
iface lo inet loopback

auto eno2np1
iface eno2np1 inet manual
mtu 9014

auto eno1np0
iface eno1np0 inet manual
mtu 9014

auto mgmt
iface mgmt inet static
address 10.250.104.11/24
gateway 10.250.104.1
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=103

auto test107
iface test107 inet static
address 172.17.104.111/24
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_mtu 9014
ovs_options tag=107
#TestPort to test if VLAN 107 will also pass vmbr0

auto bond0
iface bond0 inet manual
ovs_bonds eno1np0 eno2np1
ovs_type OVSBond
ovs_bridge vmbr0
ovs_mtu 9014
ovs_options bond_mode=balance-slb

auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 mgmt test107
ovs_mtu 9014

auto vlan107
iface vlan107 inet static
address 172.17.104.11/24
mtu 9014
vlan-raw-device eno1np0
#iscsi1

auto vlan108
iface vlan108 inet static
address 172.18.104.11/24
mtu 9014
vlan-raw-device eno2np1
#iscsi2


Is it allowed to use the Linux VLAN Interface combined with an OVS Bridge on the same NIC?