#cd /etc/sysconfig/network-scripts/ide
#vi ifcfg-bond0spa
DEVICE=bond0rest
TYPE=Ethernetorm
ONBOOT=yesip
BOOTPROTO=staticit
IPADDR=10.5.20.13io
NETMASK=255.255.252.0class
GATEWAY=10.5.20.253module
BONDING_OPTS="mode=0 miimon=100" ##mode有多種模式實現不一樣的功能配置
#vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
#vi ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
此配置可能沒有,須要建立
#vi /etc/modules.conf
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1
alias bond0 bonding
#service network restart
能夠經過查看/proc/net/bonding/bond0,查看當前是用的bond是什麼模式