编辑eth0
DEVICE=eth0
TYPE=EthernetONBOOT=yesMASTER=bond0SLAVE=yesBOTTPROTO=none编辑eth1
DEVICE=eth1ONBOOT=yesMASTER=bond0SLAVE=yesBOTTPROTO=none编辑bond0
DEVICE=bond0
BOOTPROTO=staticIPADDR=10.10.128.13NETMASK=255.255.192.0GATEWAY=10.10.128.254ONBOOT=YESUSERCTL=no添加模块:[root@foldg network-scripts]# cat /etc/modprobe.d/bonding.conf
alias bond0 bondingoptions bonding miimon=100 mode=1加载模块:
[root@foldg network-scripts]# modprobe bonding
查看网卡模式:
[root@foldg proc]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)Bonding Mode: fault-tolerance (active-backup)
Primary Slave: NoneCurrently Active Slave: eth1MII Status: upMII Polling Interval (ms): 100Up Delay (ms): 0Down Delay (ms): 0Slave Interface: eth0
MII Status: upSpeed: 1000 MbpsDuplex: fullLink Failure Count: 1Permanent HW addr: 40:f2:e9:b9:ab:68Slave queue ID: 0Slave Interface: eth1
MII Status: upSpeed: 1000 MbpsDuplex: fullLink Failure Count: 0Permanent HW addr: 40:f2:e9:b9:ab:69Slave queue ID: 0