Pcornel
Linux · Linux Networking

Bonding

Cheat sheet · https://pcornel.dk/topic.php?topic=2784

Back to the Topic

Answer

Bonding combines several NICs into one logical interface (bond0) for redundancy or more bandwidth. Modes include active-backup (1), balance-xor, 802.3ad/LACP (4) and balance-alb.

Remember

802.3ad needs a matching LACP port-channel on the switch; active-backup needs nothing on the switch. Use miimon=100 for link monitoring. Check per-slave state in /proc/net/bonding/<bond>.

First checks

  • cat /proc/net/bonding/bond0 — bond and slave status
  • ip -br addr — interfaces and addresses
  • ip route — routing table and default route
  • ip neigh — ARP/neighbour cache
  • ip route get <dest> — route, interface and source chosen for a destination
  • nmcli device status / networkctl — which tool manages each interface

Commands

show lacp neighbor

Verify in this order

slaves enslaved → bond mode applied → link monitoring → traffic sent per mode → failover on link loss

Where it usually breaks

First mismatch in link/interface → address/namespace → route/neighbor → firewall/policy → socket/daemon → DNS/TLS/SSH/application peer path; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2784

Confirmation

Confirm action

Continue?