Network Bonding

Overview

Network bonding combines multiple network interfaces for redundancy and increased bandwidth.

Bond Modes

ModeNameFeatures
0balance-rrRound-robin
1active-backupActive/passive failover
2balance-xorHash-based
3broadcastAll ports
4802.3ad (LACP)Link aggregation
5balance-tlbTransmit load balance
6balance-albAdaptive load balance

Create Bond (LACP)

# /etc/network/interfaces
auto bond0
iface bond0 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    gateway 192.168.1.1
    slaves eth0 eth1
    bond-mode 4
    bond-miimon 100
    bond-lacp-rate 1
    bond-active-slaeve eth0 eth1

Verify Bond

# Check bond status
cat /proc/net/bonding/bond0
 
# Show interfaces
ip link show

Bond with Bridge

auto bond0
iface bond0 inet static
    bond-mode 4
    bond-miimon 100
 
auto vmbr0
iface vmbr0 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    bridge-ports bond0
    bridge-stp off

Troubleshooting

  • LACP not working: Check switch port
  • No failover: Verify mode 1

See Also