Centos7-bond mode Introduction

bond mode:

Mode = 0 (balance-rr) for load balancing polymerization round-robin, and the switch is not mandatory negotiation with
Mode = 1 (active-backup) represents the standby mode, only one card is Active, other one is prepared standby
mode = 2 (balance-xor) represents XOR Hash load balancing, and the aggregation switch is not mandatory negotiation fit. (Xmit_hash_policy needed)
Mode =. 3 (Broadcast) represents all packets sent from all the interface, this is not balanced, and only the polymerization redundancy switch is not mandatory negotiation with
Mode = 4 (802.3ad) 802.3ad protocol support, and switch LACP polymeric complex manner (xmit_hash_policy needed)
mode =. 5 (TLB-Balance) is a (slave) to transmit each slave according to the load of the current turn when receiving the slave
mode = 6 (balance-alb) in the tlb 5 on the basis of increased rlb.
5 and 6 need not switch end arranged, the card automatically polymerization. 4 need to support 802.3ad. 0,2 and 3 theoretically required static polymerization method
but Found 0 may be received in the case where the switch is not set less balanced manner by the mac address spoofing .
There are three common
mode = 0: load balancing mode, automatic backup, but requires "Switch" setting and support.
mode = 1: automatic backup mode, wherein if a line break, the other line will be automatically backup.
mode = 6: load balancing mode, automatic backup is not necessary to "Switch" setting and support.
Note that if you want to make load balancing mode 0, just setting here options bond0 miimon = 100 mode = 0 is not enough, switches and network cards must be connected to a special configuration (two ports should be taken aggregation), because bonding of the two network cards to do is use the same MAC address from the principle analyze (bond under running mode 0):.
the MODE IP Bond bound NIC 0 will be modified to the same mac address, if these cards are connected to the same switch, then switch arp table of the mac address of the corresponding port there are more, the switch receives the packet sent to the mac address should be forwarded to which port it? Mac address is a globally unique Under normal circumstances, a mac address corresponding to a plurality of ports to make sure the switch confused. Therefore, under the bond mode0 If the connection to the switch, the port should take these polymerization mode (referred to as Cisco ethernetchannel, foundry portgroup called), because the switches do polymerization, polymerization of several ports is also bundled into a mac address. The solution is: two network cards can be connected to different switches .
mode6 the mode switch need not be configured, because it is the bonding of the two network cards use different MAC addresses.

Guess you like

Origin www.cnblogs.com/kylingx/p/11616861.html