I have been trying to get a Multiple Bridge, Multiple VLAN, and Bond Configuration working. As of right now i have only tried a single vlan with no success. The KVM host is connected to a Cisco switch. When i do a tcpdump from the KVM host for the br20 interface i can see the traffic making it at least that far but not to the VM. On the switch I can see the VMs mac address for the vlan. Below is some output and the configurations for the interfaces.
VM's mac address on the switch
Code: Select all
Vlan Mac Address Type Ports
---- ----------- -------- -----
20 5254.004a.f01b DYNAMIC Po2
Total Mac Addresses for this criterion: 1
Code: Select all
interface Port-channel2
switchport trunk allowed vlan 20
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
ip arp inspection trust
macro description TRUNK
spanning-tree bpdufilter enable
ip dhcp snooping trust
end
Code: Select all
6: enp11s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
7: enp12s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
8: enp13s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
9: enp14s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
10: enp19s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
link/ether 40:16:7e:20:8e:d2 brd ff:ff:ff:ff:ff:ff
11: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
12: bond0.20@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br20 state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
13: br20: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
link/ether 00:e0:4c:69:65:a6 brd ff:ff:ff:ff:ff:ff
14: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br20 state UNKNOWN mode DEFAULT qlen 1000
link/ether fe:54:00:4a:f0:1b brd ff:ff:ff:ff:ff:ff
Code: Select all
NM_CONTROLLED=no
BOOTPROTO=none
DEVICE="enp11s0"
ONBOOT="yes"
MASTER="bond0"
SLAVE="yes"
Code: Select all
NM_CONTROLLED=no
DEVICE="enp12s0"
ONBOOT="yes"
MASTER="bond0"
SLAVE="yes"
Code: Select all
NM_CONTROLLED=no
BOOTPROTO=none
DEVICE="enp13s0"
ONBOOT="yes"
MASTER="bond0"
SLAVE="yes"
Code: Select all
NM_CONTROLLED=no
BOOTPROTO=none
DEVICE="enp14s0"
ONBOOT="yes"
MASTER="bond0"
SLAVE="yes"
Code: Select all
DEVICE="bond0"
NM_CONTROLLED=no
USERCTL=no
BOOTPROTO=none
BONDING_OPTS="mode=4 miimon=100"
TYPE=Ethernet
Code: Select all
DEVICE=bond0.20
VLAN=yes
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=br20
Code: Select all
TYPE=Bridge
NM_CONTROLLED=no
BOOTPROTO=none
DEVICE=br20
ONBOOT=yes
VLAN=yes
Code: Select all
<interface type='bridge' name='br20'>
<protocol family='ipv6'>
<ip address='fe80::2e0:4cff:fe69:65a6' prefix='64'/>
</protocol>
<bridge>
<interface type='ethernet' name='vnet0'>
<link state='unknown'/>
<mac address='fe:54:00:4a:f0:1b'/>
</interface>
<interface type='vlan' name='bond0.20'>
<link speed='1000' state='up'/>
<vlan tag='20'>
<interface name='bond0'/>
</vlan>
</interface>
</bridge>
</interface>