Intel® Ethernet 800 Series
Linux Performance Tuning Guide
Adapter Bonding
Linux bonding is a powerful feature that significantly improves network performance, redundancy, and fault tolerance in server environments. However, it is important to note that it requires compatible network hardware and proper configuration on both the server and the switch to function properly.
The bonding driver in Linux allows you to aggregate multiple physical network interfaces into a bonded interface (bond). This bond appears as a single virtual network interface to the operating system and applications.
Bonding provides several modes of operation, each with its own characteristics:
| Mode | Type |
|---|---|
| 0 | balance-rr |
| 1 | active-backup |
| 2 | balance-xor |
| 3 | broadcast |
| 4 | 802.3ad |
| 5 | balance-tlb |
| 6 | balance-alb |
Different bonding modes provide varying levels of load balancing, redundancy, and switch integration requirements. Mode 1 (Active Backup) is commonly used for redundancy, while Mode 4 (LACP) is commonly used when switch-based link aggregation is required.
The following example creates a bonded interface operating in Active Backup mode as an example:
- Create the Bond Interface
nmcli connection add type bond con-name bond0 ifname bond0 \ bond.options "mode=active-backup,miimon=100" - Add Member Interfaces
nmcli connection add type ethernet ifname <interface1> master bond0 slave-type bond nmcli connection add type ethernet ifname <interface2> master bond0 slave-type bond - Configure IP Addressing on the bonded interface.
For DHCP:
nmcli connection modify bond0 ipv4.method auto For Static IP Address:
nmcli connection modify bond0 ipv4.addresses 200.20.2.4/24 \ ipv4.gateway 200.20.2.1 ipv4.method manual - Reload all Networkmanager connections and restart the service
nmcli connection reload systemctl restart NetworkManager - Activate the Bond
nmcli connection up bond0 - Verify the bonded interface
ip addr show bond0 - Display bond status and active members
cat /proc/net/bonding/bond0