Bonding Network Adapters on Redhat Enterprise 5 or CentOS 5

Home » Computer Articles » Linux » Bonding Network Adapters on Redhat Enterprise 5 or CentOS 5
September 30, 2009 Linux No Comments

This configuration takes four network interfaces and makes two bonds of two Interfaces. Also your network switch has to be able to support this configuration, HP Switches I use support this.

Edit /etc/modprobe.conf and add the following.

alias bond0 bonding
options bond0 mode=balance-alb miimon=100
alias bond1 bonding
options bond1 mode=balance-alb miimon=100

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

DEVICE=bond0
IPADDR=192.168.0.2
NETWORK=192.168.0.0
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
GATEWAY=192.168.0.1
ONBOOT=yes
IPV6INIT=no

Edit /etc/sysconfig/network-scripts/ifcfg-bond1

DEVICE=bond1
IPADDR=192.168.1.2
NETWORK=192.168.1.0
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
GATEWAY=192.168.1.1
ONBOOT=yes
IPV6INIT=no

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

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

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

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

Edit /etc/sysconfig/network-scripts/ifcfg-eth2

DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond1
SLAVE=yes
BOOTPROTO=none

Edit /etc/sysconfig/network-scripts/ifcfg-eth3

DEVICE=eth3
USERCTL=no
ONBOOT=yes
MASTER=bond1
SLAVE=yes

BOOTPROTO=none

Now restart the server.

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *