RHEL Network Card bonding

This describes the possibility to combine several network interface cards to one logical interface to increase redundancy and therefor stability. There is a possibility besindes redundant configuration to use bonding for increased performance, but this may be covered in further HowTos.

Network inteface card bonding is a way to combine several NICs to one logical
NIC to get more performance and/or redundancy.

In this Howto I will just describe HowTo improve redundancy.

This HowTo refers to RedHat Enterprise Linux 4 and its derivates Tao Linux 4 and
CentOS 4.

########################
#### Enable bonding ####
########################

1. Create /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
BROADCAST=[BROADCAST-ADDRESS]
IPADDR=[IP-ADDRESS]
NETMASK=255.255.255.0
NETWORK=[NETWORK-ADDRESS]
ONBOOT=yes
TYPE=Ethernet

Note: This is only suitable for boxes with fixed IP-Addresses. For dhcp
use BOOTPROTO=dhcp

2. Modify /etc/sysconfig/network-scripts/ifcfg-eth0 to match
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

3. Create /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

4. Reboot your box

#####################################
#### Add more logical Interfaces ####
#####################################

Note: You do not have to create logical interfaces on the physical devices,
just on the bond interface.

1. Create /etc/sysconfig/network-scripts/ifcfg-bond0:1
DEVICE=bond0:1
BOOTPROTO=none
BROADCAST=[BROADCAST-ADDRESS]
IPADDR=[IP-ADDRESS]
NETMASK=255.255.255.0
NETWORK=[NETWORK-ADDRESS]
ONBOOT=yes
TYPE=Ethernet

2. Activate device
ifup bond0:1

Leave a Reply

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