I have Six Servers I am trying to setup to use vlan trunking to the Guest machines.
I have one Bond interface for an iScsi SAN using Eth0-3, i have one NIC that is on the management Network, 15 (10.20.15.0/24) setup to vmbr0, then i have two nic cards setup in a bond1 (eth4 -5) that I want to use to trunk the 4-5 vlans to the guest os'.
I have bond entries setup for each vlan and vmbrx setup for each vlan.
When i assign a guest os to one of the trunked vlans i get a DHCP lease from the DHCP pool but I am unable to ping any other machines, i am also unable to the ping the gateway on the subnet. if I asigned the nic in the Guest to the management interface it works just fine.
here are the contents of the /etc/network/interfaces file.
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
#iface eth4 inet manual
auto eth4.10
iface eth4.10 inet manual
auto eth4.20
iface eth4.20 inet manual
auto eth4.30
iface eth4.30 inet manual
auto eth4.50
iface eth4.50 inet manual
#iface eth5 inet manual
auto eth5.10
iface eth5.10 inet manual
auto eth5.20
iface eth5.20 inet manual
auto eth5.30
iface eth5.30 inet manual
auto eth5.50
iface eth5.50 inet manual
iface eth6 inet manual
iface eth7 inet manual
auto bond0
iface bond0 inet static
address 10.20.40.112
netmask 255.255.255.0
slaves eth0 eth1 eth2 eth3
bond_miimon 100
bond_mode balance-rr
auto bond1
iface bond1 inet manual
slaves eth4.10 eth5.10
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.10 eth5.10
post-down ifdown eth4.10 eth5.10
auto bond2
iface bond2 inet manual
slaves eth4.20 eth5.20
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.20 eth5.20
post-down ifdown eth4.20 eth5.20
auto bond3
iface bond3 inet manual
slaves eth4.30 eth5.30
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.30 eth5.30
post-down ifdown eth4.30 eth5.30
auto bond5
iface bond5 inet manual
slaves eth4.50 eth5.50
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.50 eth5.50
post-down ifdown eth4.50 eth5.50
auto vmbr0
iface vmbr0 inet static
address 10.20.15.12
netmask 255.255.255.0
gateway 10.20.15.1
bridge_ports eth7
bridge_stp off
bridge_fd 0
auto vmbr10
iface vmbr10 inet static
address 10.20.10.112
netmask 255.255.255.0
bridge_ports bond1
bridge_stp off
bridge_fd 0
auto vmbr20
iface vmbr20 inet static
address 10.20.20.112
netmask 255.255.255.0
bridge_ports bond2
bridge_stp off
bridge_fd 0
auto vmbr30
iface vmbr30 inet static
address 10.20.30.112
netmask 255.255.255.0
bridge_ports bond3
bridge_stp off
bridge_fd 0
auto vmbr50
iface vmbr50 inet static
address 10.20.50.112
netmask 255.255.255.0
bridge_ports bond5
bridge_stp off
bridge_fd 0
here is the output from the ip route list command
rwems-610-03:~# ip route list
10.20.50.0/24 dev vmbr50 proto kernel scope link src 10.20.50.112
10.20.20.0/24 dev vmbr20 proto kernel scope link src 10.20.20.112
10.20.40.0/24 dev bond0 proto kernel scope link src 10.20.40.112
10.20.10.0/24 dev vmbr10 proto kernel scope link src 10.20.10.112
10.20.15.0/24 dev vmbr0 proto kernel scope link src 10.20.15.12
10.20.30.0/24 dev vmbr30 proto kernel scope link src 10.20.30.112
default via 10.20.15.1 dev vmbr0
even if i try to add a gateway for the trunked subnet it is unable to ping the gateway.
rwems-610-03:/proc/sys/net/ipv4/conf/vmbr10# echo 1 > proxy_arp
made no difference either.
I have one Bond interface for an iScsi SAN using Eth0-3, i have one NIC that is on the management Network, 15 (10.20.15.0/24) setup to vmbr0, then i have two nic cards setup in a bond1 (eth4 -5) that I want to use to trunk the 4-5 vlans to the guest os'.
I have bond entries setup for each vlan and vmbrx setup for each vlan.
When i assign a guest os to one of the trunked vlans i get a DHCP lease from the DHCP pool but I am unable to ping any other machines, i am also unable to the ping the gateway on the subnet. if I asigned the nic in the Guest to the management interface it works just fine.
here are the contents of the /etc/network/interfaces file.
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
#iface eth4 inet manual
auto eth4.10
iface eth4.10 inet manual
auto eth4.20
iface eth4.20 inet manual
auto eth4.30
iface eth4.30 inet manual
auto eth4.50
iface eth4.50 inet manual
#iface eth5 inet manual
auto eth5.10
iface eth5.10 inet manual
auto eth5.20
iface eth5.20 inet manual
auto eth5.30
iface eth5.30 inet manual
auto eth5.50
iface eth5.50 inet manual
iface eth6 inet manual
iface eth7 inet manual
auto bond0
iface bond0 inet static
address 10.20.40.112
netmask 255.255.255.0
slaves eth0 eth1 eth2 eth3
bond_miimon 100
bond_mode balance-rr
auto bond1
iface bond1 inet manual
slaves eth4.10 eth5.10
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.10 eth5.10
post-down ifdown eth4.10 eth5.10
auto bond2
iface bond2 inet manual
slaves eth4.20 eth5.20
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.20 eth5.20
post-down ifdown eth4.20 eth5.20
auto bond3
iface bond3 inet manual
slaves eth4.30 eth5.30
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.30 eth5.30
post-down ifdown eth4.30 eth5.30
auto bond5
iface bond5 inet manual
slaves eth4.50 eth5.50
bond_miimon 100
bond_mode balance-rr
pre-up ifup eth4.50 eth5.50
post-down ifdown eth4.50 eth5.50
auto vmbr0
iface vmbr0 inet static
address 10.20.15.12
netmask 255.255.255.0
gateway 10.20.15.1
bridge_ports eth7
bridge_stp off
bridge_fd 0
auto vmbr10
iface vmbr10 inet static
address 10.20.10.112
netmask 255.255.255.0
bridge_ports bond1
bridge_stp off
bridge_fd 0
auto vmbr20
iface vmbr20 inet static
address 10.20.20.112
netmask 255.255.255.0
bridge_ports bond2
bridge_stp off
bridge_fd 0
auto vmbr30
iface vmbr30 inet static
address 10.20.30.112
netmask 255.255.255.0
bridge_ports bond3
bridge_stp off
bridge_fd 0
auto vmbr50
iface vmbr50 inet static
address 10.20.50.112
netmask 255.255.255.0
bridge_ports bond5
bridge_stp off
bridge_fd 0
here is the output from the ip route list command
rwems-610-03:~# ip route list
10.20.50.0/24 dev vmbr50 proto kernel scope link src 10.20.50.112
10.20.20.0/24 dev vmbr20 proto kernel scope link src 10.20.20.112
10.20.40.0/24 dev bond0 proto kernel scope link src 10.20.40.112
10.20.10.0/24 dev vmbr10 proto kernel scope link src 10.20.10.112
10.20.15.0/24 dev vmbr0 proto kernel scope link src 10.20.15.12
10.20.30.0/24 dev vmbr30 proto kernel scope link src 10.20.30.112
default via 10.20.15.1 dev vmbr0
even if i try to add a gateway for the trunked subnet it is unable to ping the gateway.
rwems-610-03:/proc/sys/net/ipv4/conf/vmbr10# echo 1 > proxy_arp
made no difference either.