Proxmox 5.2 and LACP trunks

Barry Zubel

New Member
Jun 25, 2018
1
0
1
47
Good afternoon,

I've been attempting all day to sort out LACP trunks in the most recent .ISO release of Proxmox.

I seem to be hitting the bug with bonds *always* coming up at boot in balance-rr mode, despite trying various options found both on these forums and elsewhere:

1. creating /etc/modprobe.d/bonding.conf containing:
Code:
options bonding max_bonds=0
2. Editing /etc/network/if-pre-up.d/ifenslave and adding 'sleep 2' after the bonding driver is loaded
3. Editing /etc/default/bridge-utils and changing BRIDGE_HOTPLUG to 'no'
4. using bond99 instead of bond0
5. Specifying bond mode in /etc/modprobe.d/bonding.conf, eg:
Code:
alias bond99 bonding
options bond99 mode=4
6. Varying combination of the above

Unfortunately, I'm yet to be successful in actually bringing up the bond in LACP mode on boot. It always comes up in balance-rr.

If I then 'ifdown -a; rmmod bonding, ifup bond99; ifup vmbr1' it will come up successfully in LACP with absolutely no problems.

Does anyone have the magic sauce?

Happy to post configs if required - this is an example interfaces file from one of the nodes:

Code:
allow-hotplug enp1s0
allow-hotplug enp2s0

auto lo
iface lo inet loopback

iface enp1s0 inet manual
        bond-master bond99

iface enp2s0 inet manual
        bond-master bond99

iface bond99 inet manual
        bond-slaves enp1s0 enp2s0
        bond-mode 802.3ad
        bond-miimon 100
        bond-updelay 200
        bond-downdelay 200
        bond-xmit-hash-policy layer3+4
        bond-lacp-rate fast

auto vmbr0
iface vmbr0 inet static
        address 10.0.3.76
        netmask 255.255.255.0
        gateway 10.0.3.1
        bridge_ports bond99
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes

Halp!
 
Hi,

But do you sure that your switch support LACP on layer 3+4?
The most switches do not support this, common is layer 2 and maybe layer 2+3.

LACP bonding works out of the box, you do not have to edit any files at all.
All this can be done by the GUI.
All the editing in the /etc* are not necessary.
 
Hi,

But do you sure that your switch support LACP on layer 3+4?
The most switches do not support this, common is layer 2 and maybe
hi, you dont need to have same hash policy between proxmox and switch. The balancing is done when packet is going out the server to switch (hash algo from proxmox) or going out the switch to the server (hash algo from switch ).
 

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!