Phil Manuel wrote:
>> alias bond0 bonding
>> alias bond1 bonding
>> options bonding mode=active-backup max_bonds=2
Bad approach -- forces both bond devices to use the same options. With
RHEL4/CentOS 4, the following is more appropriate:
# for RHEL4:
# install module on a per-interface basis, with options given here
# mail may wrap, should be one line:
install bond0 /sbin/modprobe --ignore-install -o bond0 bonding
mode=active-backup max_bonds=2
# for RHEL5:
# use BONDING_OPTS in ifcfg-bond0 to set options; only use alias here
alias bond0 bonding
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=<ip address>
NETMASK=255.255.255.0
BONDING_OPTS="mode=active-backup miimon=100"
This mechanism should be used in RHEL/CentOS 5, and is not supported prior.