Thursday, May 5, 2011

How to create network bonding device?

■ Requirement :  Create network bonding device 
■ OS Environment : Linux[RHEL 6, Centos]
■ Application: bonding
■ Implementation Steps : 

1. Edit /etc/modprobe.conf and add following :

 alias bond bonding 

2. Edit /etc/sysconfig/network-scripts/ifcfg-bond and add following :

DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="
"

3. Assuming two ethernet cards are eth0 and eth1 :They will look like :

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond

SLAVE=yes
USERCTL=no

3. Make sure "bonding" kernel module is present on server: 


$ lsmod | grep bonding; 
$ modprobe bonding;

4. Restart the service network and make the bond0 up.like : 


$ service network restart

No comments:

Post a Comment