Miimon is used for link monitoring. For example: miimon = 100, The system monitors the link connection status every Ms. If one line fails, it is transferred to another line. The value of mode indicates the working mode, which has a total of 0, 1, 2, 3, 6, 5, 6, 6 modes, usually 0, 6, and 1.
Mode = 0, indicating that load balancing (round-robin) is a load balancing method, and both NICs work, however, special configurations must be made for the switch to be connected to the NIC (the two ports should be aggregated), because the two Enis using the same MAC address as the bonding Nic.
Mode = 6, indicating that load balancing (round-robin) is a load balancing method. Both NICs work, but in this mode, no switch is required, because the two Enis for bonding use different MAC addresses.
Mode = 1, indicating that fault-tolerance (active-backup) provides redundancy, working in the active/standby mode, that is, by default, only one network card works, and the other is used for backup.
Note: bonding can only provide link monitoring, that is, whether the link from the host to the switch is connected. If the external link of the switch is down and the switch is not faulty, bonding considers that the link is correct and continues to be used.
Author s_niper