Notes about Linux bonded interface
本文将mark下Linux bonded interface的相关notes。
The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical “bonded” interface. The behavior of the bonded interface depends on the mode; generally speaking, modes provide either hot standby or load balancing services.
Use a bonded interface when you want to increase your link speed or do a failover on your server.
Here’s how to create a bonded interface:1
2
3ip link add bond1 type bond miimon 100 mode active-backup
ip link set eth0 master bond1
ip link set eth1 master bond1
This creates a bonded interface named bond1
with mode active-backup. For other modes, please see the kernel documentation.
The Linux bonding driver provides a mechanism for enslaving multiple network interfaces into a single, logical “bonded” interface with the same MAC address.Behavior of the bonded interfaces depends on modes.For instance, the bonding driver has the ability to detect link failure and reroute network traffic around a failed link in a manner transparent to the application, which is active-backup mode. It also has the ability to aggregate network traffic in all working links to achieve higher throughput, which is referred to as trunking.
参考资料: