# 添加设备/etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=5

解释:
miimon链路监测值100表示100s检测一次
mode是bonding工作模式,共有0-6等7种;相关说明文档如下:
http://www.kernel.org/doc/Documentation/networking/bonding.txt


# 添加启动/etc/rc.local 切忌必须添加如下信息:
ifenslave bond0 eth0 eth1

# 修改网卡配置
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.5.1
NETMASK=255.255.255.0
GATEWAY=192.168.5.1

/etc/sysconfig/network-scripts/ifcfg-bond0:1
DEVICE=bond0:1
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.5.2
NETMASK=255.255.255.0
GATEWAY=192.168.5.1

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
如下信息可要可不要;当多个bonding设备的时候最好是要上。
MASTER=bond0
SLAVE=yes



/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
如下信息可要可不要;当多个bonding设备的时候最好是要上。
MASTER=bond0
SLAVE=yes

相关文件
# 内核文档
/usr/share/doc/kernel-doc-2.6.18/Documentation/networking/bonding.txt
/sys/class/net/bond0/bonding/mode      bonding工作模式文件
/sys/class/net/bonding_masters         bonding成员网卡
/sys/class/net/bond0/bonding/slaves

自己总结翻译的:
mode的值表示工作模式,他共有0,1,2,3,4,5,6这7种模式,常用的为0,1两种。
mode=0表示load balancing (round-robin)为负载均衡方式,两块网卡都工作。
mode=1表示fault-tolerance (active-backup)提供冗余功能,工作方式是主备的工作方式,也就是说默认情况下只有一块网卡工作,另一块做备份.
mode=2表示balance-x,提供负载均衡和冗余功能。
mode=3表示broadcast,这个模式提供容错性。
mode=4表示802.3ad,提供了ethtool的迅速,以及使用了802.3ad模式
mode=5表示balance-tlb,自动适应负载均衡,自动切换故障。在此基础上Ethtool支持驱动。
mode=6表示在5模式的基础上优化了arp的广播信息。