HP Auto Port Aggregation Administrator's Guide HP-UX 11i v3 (766140-001, March 2014)
Example: Configuring a failover group
Suppose you want to configure a simple, two-port LAN Monitor failover group on a K-class system.
You enter the netstat and ioscan commands as follows:
# netstat -in
Name Mtu Network Address Ipkts Opkts
lan1 1500 192.1.1.0 192.1.1.153 9504123 12437048
lan0 1500 191.1.1.0 191.1.1.1 11202 257458
lo0 4136 127.0.0.0 127.0.0.1 417 417
# ioscan -fkC lan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 1 8/8/1/0 igelan CLAIMED INTERFACE HP PCI 1000Base-T Core
lan 2 8/8/2/0 igelan CLAIMED INTERFACE HP PCI 1000Base-T Core
lan 3 8/12/1/0 igelan CLAIMED INTERFACE HP PCI 1000Base-T Core
lan 4 8/12/2/0 igelan CLAIMED INTERFACE HP PCI 1000Base-T Core
lan 0 10/12/6 lan2 CLAIMED INTERFACE Built-in LAN
#
The netstat output shows that lan1 is currently configured with IP address 192.1.1.153. The
ioscan output shows spare 1000Base-T devices lan2, lan3, and lan4.
You decide that lan2 will be the standby link for the failover group, with lan1 as the active
device.
To configure the failover group, do the following:
1. Connect lan1 and lan2 to the same switch or to different switches on the same subnet.
NOTE: Be sure that trunking is not enabled on the switch ports.
2. Obtain the station address for lan2 by issuing the nwmgr command, as follows:
# nwmgr
Name/ Interface Station Sub- Interface Related
ClassInstance State Address system Type Interface
============== ========= ============== ====== ============= =========
lan0 UP 0x080009D43696 iether 1000Base-SX
lan1 UP 0x0060B04B7B82 iether 1000Base-SX
lan2 UP 0x0060B04B7B83 iether 1000Base-SX
lan3 UP 0x001083953C1C iether 1000Base-SX
lan4 UP 0x001083953C1D iether 1000Base-SX
lan900 DOWN 0x000000000000 hp_apa hp_apa
lan901 DOWN 0x000000000000 hp_apa hp_apa
lan902 DOWN 0x000000000000 hp_apa hp_apa
lan903 DOWN 0x000000000000 hp_apa hp_apa
lan904 DOWN 0x000000000000 hp_apa hp_apa
The station address is 0x0060B04B7B83.
3. Verify that there is link connectivity between lan1 and lan2, as follows:
# nwmgr --diag -A dest=0x0060B04B7B83 -S iether -I 1
#
If there is no link connectivity, resolve the connectivity issue between the devices.
4. Verify that an entry exists in the /etc/rc.config.d/hp_apaportconf file for the active
and standby interfaces that sets the interfaces' port configuration mode to LAN_MONITOR.
HP_APAPORT_INTERFACE_NAME[0]=lan1
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR
HP_APAPORT_INTERFACE_NAME[1]=lan2
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR
5. Activate the configuration by entering:
# /sbin/init.d/hplm stop
# /sbin/init.d/hpapa stop
# /sbin/init.d/hpapa start
# /sbin/init.d/hplm start
88 Configuring HP APA by editing files