Mode0: Round-robin policy: transmits data packets in sequence, from the first available slave to the last available slave. This mode provides load balancing and fault tolerance mechanisms. Mode1: Active-backup policy: Only one slave is active ). Other slave changes to active only when the active slave fails ). Mode6: balance-tlb mode, coupled with IPV
Mode0: Round-robin policy: transmits data packets in sequence, from the first available slave to the last available slave. This mode provides load balancing and fault tolerance mechanisms.
Mode1: Active-backup policy: Only one slave is active ). Other slave changes to active only when the active slave fails ).
Mode6: balance-tlb mode, coupled with the receive load balance (rlb) for IPV4 traffic, without the support of any switch.
1. Create a bound Nic
Vi/etc/syconfig/network-scripts/ifcfg-bound0
DEVICE = bond0
BOOTPROTO = no
BROADCAST = 10.0.2.255
IPADDR = 10.0.20.8
NETMASK = 255.255.255.0
NETWORK = 10.0.2.0
ONBOOT = yes
USERCTL = no
GATEWAY = 10.0.2.2
2. Modify the eth0 configuration of the NIC
Vim/etc/syconfig/network-scripts/ifcfg-eth0
DEVICE = eth0
BOOTPROTO = none
MASTER = bond0
SLAVE = yes
ONBOOT = yes
3. Modify the eth1 configuration of the NIC
Vim/etc/syconfig/network-scripts/ifcfg-eth1
DEVICE = eth1
BOOTPROTO = none
MASTER = bond0
SLAVE = yes
ONBOOT = yes
4. Create modprobe. conf. RedHat6 is different from 5. There is no/etc/modprobe. conf file.
Vim/etc/modprobe. d/net-bound0.conf
Alias bond0 bonding
Options bond0 miimon = 100 mode = 6
5. Restart the network service.
Service network restart