Network load balancing
Network load balancing and fault tolerance are critical to modern enterprises.
Linux Bond4 is a Linux-based core module. Linux Bond4 has a powerful fault tolerance function. When one interface fails, it can automatically switch traffic to other interfaces, which can maintain network connectivity, and provide high performance and reliable network load balance and fault tolerance mechanism.
bond mod=4: (802.3ad) IEEE 802.3ad Dynamic link aggregation (IEEE 802.3ad dynamic link aggregation)
Feature: Create an aggregation group that shares the same rate and duplex Settings. According to the 802.3ad specification, multiple slaves work under the same activated aggregate.
The slave election for outgoing traffic is based on the transport hash policy. The policy can be changed from the default XOR policy to another policy using the xmit_hash_policy option. It is important to note that not all transport policies are 802.3AD-adapted, and different implementations may have different adaptations.
The switch required for BOND4 communication should support IEEE 802.3ad Dynamic link aggregation.
This section uses four network ports forming BOND4 as an example. Enter the configuration file as shown.

Then after setting up the switch, you can communicate smoothly.