[SOLVED] bond vlan and vms

flexyz

Well-Known Member
Sep 22, 2016
154
9
58
54
Hi

I am trying to get proxmox to work with an LACP trunk connected to a Netgear stacked switch.

On the Netgear the LAG port is tagged with all 4 VLANs

It works with access from proxmox but not from containers/kvm, here is my config

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer2

auto bond0.10
iface bond0.10 inet manual
vlan-raw-device bond0

auto bond0.20
iface bond0.20 inet manual
vlan-raw-device bond0

auto bond0.183
iface bond0.183 inet manual
vlan-raw-device bond0

auto bond0.200
iface bond0.200 inet manual
vlan-raw-device bond0

auto vmbr0
iface vmbr0 inet static
address 10.183.1.5
netmask 255.255.255.0
bridge_ports eth3
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.183.5
netmask 255.255.255.0
gateway 192.168.183.1
bridge_ports bond0.183
bridge_stp off
bridge_fd 0
 
bond_xmit_hash_policy layer2
I think you need to switch this to layer2+3 or layer3+4.
Layer2: Uses XOR of hardware MAC addresses and packet type ID field to generate the hash.
Layer2+3: Uses XOR of hardware MAC addresses and IP addresses to generate the hash.
Layer3+4: This policy uses upper layer protocol information, when available, to generate the hash
layer3+4 is not strict 802.3ad compliant.
https://www.kernel.org/doc/Documentation/networking/bonding.txt
 
Ok I did try layer2+3 but did not get it to work from proxmox.

So I have to create an IP address on the bond configuration or to get the bond active?

Does the rest look right?

Thanks
Felix
 
auto bond0.10
iface bond0.10 inet manual
vlan-raw-device bond0

auto bond0.20
iface bond0.20 inet manual
vlan-raw-device bond0

auto bond0.183
iface bond0.183 inet manual
vlan-raw-device bond0

auto bond0.200
iface bond0.200 inet manual
vlan-raw-device bond0

auto vmbr0
iface vmbr0 inet static
address 10.183.1.5
netmask 255.255.255.0
bridge_ports eth3
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.183.5
netmask 255.255.255.0
gateway 192.168.183.1
bridge_ports bond0.183
bridge_stp off
bridge_fd 0
Above should be like this:

auto vmbr10
iface vmbr10 inet manual
bridge_ports bond0.10
bridge_stp off
bridge_fd 0

auto vmbr20
iface vmbr20 inet manual
bridge_ports bond0.20
bridge_stp off
bridge_fd 0

auto vmbr183
iface vmbr183 inet static
address 192.168.183.5
netmask 255.255.255.0
gateway 192.168.183.1
bridge_ports bond0.183
bridge_stp off
bridge_fd 0

auto vmbr200
iface vmbr200 inet manual
bridge_ports bond0.200
bridge_stp off
bridge_fd 0

auto vmbr0
iface vmbr0 inet static
address 10.183.1.5
netmask 255.255.255.0
bridge_ports eth3
bridge_stp off
bridge_fd 0
 

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!