in Redhat, Server_doc

How to create network Bonding link on RedHat 6.2

We must to edit the current ethernet config and the create the bond0 file on network-scripts folder :

Edit the ifcfg-eth0 file :
[root@dbsrv ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=”eth0″
HWADDR=”E4:11:5B:DE:CD:50″
NM_CONTROLLED=”no”
ONBOOT=”no”
MASTER=”bond0″
SLAVE=”yes”
BOOTPROTO=”none”
USERCTL=”no”

Edit the ifcfg-eth1 file :
[root@dbsrv ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=”eth1″
HWADDR=”E4:11:5B:DE:CD:51″
NM_CONTROLLED=”no”
ONBOOT=”yes”
MASTER=”bond0″
SLAVE=”yes”
BOOTPROTO=”none”
USERCTL=”no”

Create the ifcfg-bond0 file :
[root@dbsrv ~]# vi /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=”bond0″
NM_CONTROLLED=”no”
ONBOOT=”yes”
IPADDR=”192.168.10.212″
NETMASK=”255.255.255.0″
USERCTL=”no”
BONDING_OPTS=”mode=0 miimon=1000″
BOOTPROTO=”none”

Now the last is create the bonding.conf file :
[root@dbsrv ~]# vi /etc/modprobe.d/bonding.conf

alias bond0 bonding

Restart the network service :
[root@dbsrv ~]# service network restart

Now test to pull out the eth0 network cable, and try to ping the ip.