Thursday, 1 December 2011

REDHAT - Configure channel bonding


  • Create a file in the /etc/sysconfig/network-scripts/ directory called ifcfg-bond0 with following contents

DEVICE=bond0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.115
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
PEERDNS=yes
USERCTL=no

  • update /etc/sysconfig/network-scripts/ifcfg-eth0 file:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

  • - update /etc/sysconfig/network-scripts/ifcfg-eth1 file:

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

  • Update /etc/modules.conf file and add the following line:
alias bond0 bonding

  • Once /etc/modules.conf is configured run ifup command to bring up the bonding interface
# ifup eth1