Setting up LACP (802.3ad) on Linux Systems

bonding | bonding-lacp

descr

we want LACP slow DUs to be compliant with cisco catalyst

we could also try raw channel (mode on on the switch side) but many netadmins say that’s a no go as it has bad side-effects to be expected.

warning // lessons learned

setting module settings within modprobe.d/ doesn’t seem to work anymore

setup

tail -n0 -F /var/log/*

vi /etc/modprobe.d/bonding.conf

alias bond0 bonding

# DOES NOT WORK ANYMORE???
#options bond0 miimon=100 mode=4
# active by default - lacp_active=1
# slow LACPDUs by default - lacp_rate=0

apply

modprobe bonding

# WORKAROUND HERE
echo 4 > /sys/class/net/bond0/bonding/mode
ifconfig bond0 10.4.4.1/24 up
ifconfig bond0 10.4.4.2/24 up

slave interfaces need to be down for joining the aggregate

echo +eth1 > /sys/class/net/bond0/bonding/slaves
echo +eth2 > /sys/class/net/bond0/bonding/slaves
echo +eth3 > /sys/class/net/bond0/bonding/slaves

check

lsmod | grep bonding

cat /proc/net/bonding/bond0
    cat /sys/class/net/bonding_masters
cat /sys/class/net/bond0/bonding/slaves

cat /sys/class/net/bond0/bonding/miimon
cat /sys/class/net/bond0/bonding/mode
cat /sys/class/net/bond0/bonding/lacp_rate
cat /sys/class/net/bond0/bonding/xmit_hash_policy

you’re good to go to setup lacp on the switch

acceptance

see benchmarks/lacp

resources

https://backdrift.org/lacp-configure-network-bonding-linux

http://aarvik.dk/how-to-setup-lacp-network-bonding-interface-on-rhel-centos-7/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun