2014年12月17日

RedHat Enterprise Linux 4 Network Bonding

1.  Edit /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=xx.xx.xx.xx
NETWORK=xx.xx.xx.xxx
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes

2.  Edit /etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

3.  Edit /etc/sysconfig/network-scripts/ifcfg-eth1

Device=eth1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

4. Edit /etc/modprobe.conf  ( RHEL 4 only, do not modify on RHEL 5 )

alias bond0 bonding
options bond0 mode=1 miimon=100

5. Module probe.

$ modprobe bonding

6. Restart network 

$ service network restart

7. Check

$ less /proc/net/bonding/bond0

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 1
Permanent HW addr: 00:19:bb:21:54:c0

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:19:bb:21:54:ae


---
refer:
1.  /usr/share/doc/iputils-20020927/README.bonding
2. for RHEL 5 , refer: Channel Bonding Interface