Step:1  查看是否支持bond
[root@rac1 network-scripts]# cat /boot/config-2.6.32-504.el6.x86_64 |grep -i bonding    
CONFIG_BONDING=m

Step:2 创建bond0 文件 ( ifcfg-bond0 ) and specify the ip address,netmask & gateway

# vi /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=192.168.56.11
NETMASK=255.255.255.0
GATEWAY=192.168.56.1
TYPE=Bond
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static

Step:3 编辑 eth0 & eth1 主要master 和 salve 参数

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes

# vi /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes

Step:4 创建Bond file(bonding.conf)

# vi /etc/modprobe.d/bonding.conf

alias bond0 bonding
options bond0 mode=1 miimon=100



Step:5 重启网络服务

# service network restart



root@rac1 network-scripts]# ifconfig bond0
bond0     Link encap:Ethernet  HWaddr 08:00:27:05:51:B3  
          inet addr:192.168.56.11  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe05:51b3/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:849 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15919 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:81031 (79.1 KiB)  TX bytes:996017 (972.6 KiB)

[root@rac1 network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 08:00:27:05:51:b3
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 08:00:27:1b:a8:ba
Slave queue ID: 0
[root@rac1 network-scripts]# e currently using active-backup bonding. To do the testing just disable one interface and check whether you are still accessing your machine using the bond ip.