Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Building an HA Cluster Configuration
Preparing Your Systems
Chapter 5 151
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
For Red Hat 5 only, add the following line to the ifcfg-bond0 file:
BONDING OPTS=’miimon=100 mode =1’
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
For Red Hat 5 only, add the hardware (MAC) address of the interface
in the ifcfg-ethn slave files, for example: