[root@web_2 ~]# cd /etc/sysconfig/network-scripts/web
[root@web_2 network-scripts]# cat ifcfg-bond0 ide
DEVICE=bond0spa
ONBOOT=yesorm
BOOTPROTO=staticxml
IPADDR=172.16.10.22ip
NETMASK=255.255.0.0ci
TYPE=Ethernetit
[root@web_2 network-scripts]# cat ifcfg-bond1io
DEVICE=bond1class
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