Hi all,
I am stock with a problem which I cannot solve. The problem is that I have a bond, a number of vlans, and bridges for the mention vlans but something fundamental seems to be wrong because communication cannot pass through the bond to the switch but all communication between VM's on the specific bridge and the host works. As I see it it seems that the bond either strips of the vlan tag or does not apply it at all. Can somebody see if my interface config file is wrong?
cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
pre-up ifup eth0 eth1
post-down ifdown eth0 eth1
#bond_xmit_hash_policy layer2+3
#bond_lacp_rate slow
auto vlan1
iface vlan1 inet manual
vlan-raw-device bond0
auto vlan10
iface vlan10 inet manual
vlan-raw-device bond0
auto vlan20
iface vlan20 inet manual
vlan-raw-device bond0
auto vmbr0
iface vmbr0 inet static
address 192.168.2.8
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports vlan1
bridge_stp off
bridge_fd 0
auto vmbr10
iface vmbr10 inet static
address 172.16.1.8
netmask 255.255.255.0
bridge_ports vlan10
bridge_stp off
bridge_fd 0
# post-up ip route add table vlan10 default via 172.16.1.1 dev vmbr10
# post-up ip rule add from 172.16.1.0/24 table vlan10
# post-down ip route del table vlan10 default via 172.16.1.1 dev vmbr10
# post-down ip rule del from 172.16.1.0/24 table vlan10
auto vmbr20
iface vmbr20 inet static
address 172.16.2.8
netmask 255.255.255.0
bridge_ports vlan20
bridge_stp off
bridge_fd 0
auto vmbr30
iface vmbr30 inet static
address 172.16.3.8
netmask 255.255.255.0
bridge_ports bond0
bridge_stp off
bridge_fd 0
# gateway 172.16.3.254
An example VM config:
cat /etc/pve/qemu-server/109.conf
#eth0%3A 192.168.2.201
#eth1%3A 172.16.1.201
boot: cn
bootdisk: virtio0
cores: 2
cpu: qemu32
ide2: none,media=cdrom
memory: 384
name: ns1.datanom.net
net0: virtio=76:18B:B7:EB:C9,bridge=vmbr0
net1: virtio=7E7:33:6D:FB:4A,bridge=vmbr10
ostype: l26
sockets: 1
startup: order=1
virtio0: qnap_lvm:vm-109-disk-1
I am stock with a problem which I cannot solve. The problem is that I have a bond, a number of vlans, and bridges for the mention vlans but something fundamental seems to be wrong because communication cannot pass through the bond to the switch but all communication between VM's on the specific bridge and the host works. As I see it it seems that the bond either strips of the vlan tag or does not apply it at all. Can somebody see if my interface config file is wrong?
cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
pre-up ifup eth0 eth1
post-down ifdown eth0 eth1
#bond_xmit_hash_policy layer2+3
#bond_lacp_rate slow
auto vlan1
iface vlan1 inet manual
vlan-raw-device bond0
auto vlan10
iface vlan10 inet manual
vlan-raw-device bond0
auto vlan20
iface vlan20 inet manual
vlan-raw-device bond0
auto vmbr0
iface vmbr0 inet static
address 192.168.2.8
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports vlan1
bridge_stp off
bridge_fd 0
auto vmbr10
iface vmbr10 inet static
address 172.16.1.8
netmask 255.255.255.0
bridge_ports vlan10
bridge_stp off
bridge_fd 0
# post-up ip route add table vlan10 default via 172.16.1.1 dev vmbr10
# post-up ip rule add from 172.16.1.0/24 table vlan10
# post-down ip route del table vlan10 default via 172.16.1.1 dev vmbr10
# post-down ip rule del from 172.16.1.0/24 table vlan10
auto vmbr20
iface vmbr20 inet static
address 172.16.2.8
netmask 255.255.255.0
bridge_ports vlan20
bridge_stp off
bridge_fd 0
auto vmbr30
iface vmbr30 inet static
address 172.16.3.8
netmask 255.255.255.0
bridge_ports bond0
bridge_stp off
bridge_fd 0
# gateway 172.16.3.254
An example VM config:
cat /etc/pve/qemu-server/109.conf
#eth0%3A 192.168.2.201
#eth1%3A 172.16.1.201
boot: cn
bootdisk: virtio0
cores: 2
cpu: qemu32
ide2: none,media=cdrom
memory: 384
name: ns1.datanom.net
net0: virtio=76:18B:B7:EB:C9,bridge=vmbr0
net1: virtio=7E7:33:6D:FB:4A,bridge=vmbr10
ostype: l26
sockets: 1
startup: order=1
virtio0: qnap_lvm:vm-109-disk-1