Managing HP Serviceguard for Linux, Seventh Edition, July 2007

Building an HA Cluster Configuration
Implementing Channel Bonding (Red Hat)
Chapter 5 157
Sample Configuration
Configure the following files to support LAN redundancy. For a single
failover only one bond is needed.
1. Create a bond0 file, ifcfg-bond0.
Create the configuration in the /etc/sysconfig/network-scripts
directory. For example, in the file, ifcfg-bond0, bond0 is defined
as the master (for your installation, substitute the appropriate
values for your network instead of 192.168.1).
Include the following information in the ifcfg-bond0 file:
DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
2. Create an ifcfg-ethn file for each interface in the bond. All
interfaces should have SLAVE and MASTER definitions. For example, in
a bond that uses eth0 and eth1, edit the ifcfg-eth0 file to appear as
follows:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Edit the ifcfg-eth1 file to appear as follows:
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
3. Add the following lines to /etc/modules.conf:
alias bond0 bonding
options bond0 miimon=100 mode=1