Verify hosts files and if you do not have them
#more /etc/hosts
Add them in our case we will work with names in the hosts file below
#vi /etc/hosts
10.1.1.5 spa01
10.1.1.6 spa01-test1
10.1.1.7 spa01-test2
Verify Network and Netmask
#more /etc/netmasks
10.10.10.0 255.255.255.0
Interface Configuration
# /sbin/ifconfig bge0 spa01-test1 netmask + broadcast + group ipmp0 deprecated -failover up
# /sbin/ifconfig ce0 spa02-test2 netmask + broadcast + group ipmp0 deprecated -failover up \
addif spa01 netmask + broadcast + failover up
You can save the configuration on the following files
/etc/hostname.bge0
spa01-test1 netmask + broadcast + group ipmp0 deprecated -failover up
/etc/hostname.ce0
spa02-test2 netmask + broadcast + group ipmp0 deprecated -failover up \
addif spa01 netmask + broadcast + failover up
addif spa01 netmask + broadcast + failover up
You can verify the time to detect any NIC failure
#more /etc/default/mpathd
#
#pragma ident "@(#)mpathd.dfl 1.2 00/07/17 SMI"#
# Time taken by mpathd to detect a NIC failure in ms. The minimum time
# that can be specified is 100 ms.
#
FAILURE_DETECTION_TIME=10000 <----- This means 10 seconds
#
# Failback is enabled by default. To disable failback turn off this option
#
FAILBACK=yes
#
# By default only interfaces configured as part of multipathing groups
# are tracked. Turn off this option to track all network interfaces
# on the system
#
TRACK_INTERFACES_ONLY_WITH_GROUPS=yes
You can check the IPMP with the following commands enabling and disabling the interfaces in order to test the IPMP failover
# if_mpadm -d bge0
# if_mpadm -r bge0
# ifconfig -a
# if_mpadm -d ce0
# ifconfig -a
# if_mpadm -r ce0
Comments