bond and a kernel module called special channel bonding network interface, the network interface interfaces to bind a plurality of channels.
The selection of the binding mode, channel bonding the two or more network interfaces as a network interface, to increase bandwidth to provide redundancy or
Mode 0 (balance round robin) - round-robin policy, a round-robin manner using all interfaces in all slave packet transmission, the slave can receive any
Mode 1 (active backup) - fault tolerance, you can only use a slave interface, but if the interface fails, another slave takes over it
Mode 3 (broadcast) - fault-tolerant, all packets will be broadcast by all slave interfaces
eth0 192.168.1.104 eth1 192.168.1.105
bound 192.168.1.106
Software Configuration
cp -pv /etc/sysconfig/selinux /etc/sysconfig/selinux.bak
echo 'SELINUX=disabled' > /etc/sysconfig/selinux
cp -pv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
cp -pv /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth1.bak
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:45:17:69
TYPE=Ethernet
UUID=2a0d57d6-4cc6-4fb0-82b0-6efe7cef4d14
ONBOOT=yes
BOOTPROTO=none
SLAVE=yes
MASTER=bond0
cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=00:0C:29:45:17:73
TYPE=Ethernet
UUID=62962214-47ea-4791-866c-08b2e004af83
ONBOOT=yes
BOOTPROTO=none
SLAVE=yes
MASTER=bond0
cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
USERCTL=no
ONBOOT=yes
#BONDING_OPTS="miimon=100 mode=1"
BOOTPROTO=static
IPADDR=192.168.1.106
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
cp -pv /etc/modprobe.d/dist.conf /etc/modprobe.d/dist.conf.bak
echo 'alias bond0 bonding' >> /etc/modprobe.d/dist.conf
echo 'options bond0 miimon=100 mode=1' >> /etc/modprobe.d/dist.conf
less /etc/modprobe.d/dist.conf | grep bond
alias bond0 bonding
Options bond0 miimon = 100 mode = 1
cp -pv /etc/rc.d/rc.local /etc/rc.d/rc.local.bak
echo 'ifenslave bond0 eth0 eth1' >> /etc/rc.d/rc.local
less /etc/rc.d/rc.local | grep bond
ifenslave bond0 eth0 eth1
service NetworkManager stop
chkconfig NetworkManager off
service network restart
ip addr | grep bond
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
inet 192.168.1.106/24 brd 192.168.1.255 scope global bond0