bond and vlan

mir

Famous Member
Apr 14, 2012
3,568
127
133
Copenhagen, Denmark
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:18:DB:B7:EB:C9,bridge=vmbr0
net1: virtio=7E:D7:33:6D:FB:4A,bridge=vmbr10
ostype: l26
sockets: 1
startup: order=1
virtio0: qnap_lvm:vm-109-disk-1
 

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!