[root@web_2 ~]# cd /etc/sysconfig/network-scripts/
[root@web_2 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=172.16.10.22
NETMASK=255.255.0.0
TYPE=Ethernet
[root@web_2 network-scripts]# cat ifcfg-bond1
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.122
NETMASK=255.255.255.0
TYPE=Ethernet
[root@web_2 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
MASTER=bond0
SLAVE=yes
USERCTL=no
[root@web_2 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
MASTER=bond0
SLAVE=yes
USERCTL=no
[root@web_2 network-scripts]# cat ifcfg-eth2
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=static
MASTER=bond1
SLAVE=yes
USERCTL=no
[root@web_2 network-scripts]# cat ifcfg-eth3
DEVICE=eth3
ONBOOT=yes
BOOTPROTO=static
MASTER=bond1
SLAVE=yes
USERCTL=no
[root@web_2 network-scripts]# cat /etc/modprobe.conf#追加以下四行
alias bond0 bonding
options bond0 miimon=100 mode=1 mode=1 冗余模式 mode=0 负载模式
alias bond1 bonding
options bond1 miimon=100 mode=1
[root@web_2 network-scripts]# cat /etc/rc.local#追加以下两行
ifenslave bond0 eth0 eth1
ifenslave bond1 eth2 eth3
[root@web_2 network-scripts]# reboot