Brief introduction
A port binding is the binding of multiple physical network cards to a logical network card; Depending on the pattern, the function of the NIC binding can be divided into two main functions of lifting throughput and hot backup, which is generally to improve throughput. Additional support for bonding kernel modules is required.
Configuration
Mount Module
Modify module mount configuration file vim/etc/modprobe.conf
Alias Bond0 Bonding
Options Bond0 mode=balance-alb miimon=100 use_carrier=0
Modify Network card parameters
Add BOND0 configuration Vim/etc/sysconfig/network-script/ifcfg-bond0
Device=bond0
Userctl=no
Bootproto=none
Onboot=yes
ipaddr=192.168.110.2
network=192.168.110.0
netmask=255.255.255.0
gateway=192.168.110.1
Add slave configuration Vim/etc/sysconfig/network-script/ifcfg-eth1
Device=eth1
Userctl=no
Onboot=yes
Master=bond0
Slave=yes
Bootproto=none
Restart Network
Service Network restart