HP Auto Port Aggregation Administrator's Guide HP-UX 11i v3 (766140-001, March 2014)
6. If the device to be the active link does not have the desired IP address, enter ifconfig to
assign the IP address. Also add an entry to the /etc/rc.config.d/netconf file to assign
the IP address permanently (or use SMH to do it).
# ifconfig lan1 192.1.1.153
7. Enter the lanqueryconf -s command to query the system for possible failover groups.
# lanqueryconf -s
ASCII output is in the /etc/lanmon/lanconfig.ascii file.
a. Verify that the content of the ASCII file is valid. Enter lancheckconf:
# lancheckconf
b. View the contents of the /etc/lanmon/lanconfig.ascii file and verify that it contains
the configuration information you want.
# cat /etc/lanmon/lanconfig.ascii
See “lanconfig.ascii file” (page 80) for an example of this file.
c. Verify that /etc/lanmon/lanconfig.ascii has the failover group configured, as
planned.
# cat /etc/lanmon/lanconfig.ascii
d. Edit the file, if needed, and enter lancheckconf again.
8. Use the lanapplyconf command to build the failover group, and check it with the nwmgr
-S apa and netstat -in commands:
# lanapplyconf
Reading ASCII file /etc/lanmon/lanconfig.ascii
Creating Fail-Over Group lan900
# nwmgr -S apa
Class Mode Load Speed- Members
Instance Balancing Duplex
======== =========== ========= ==================== =======
lan900 LAN_MONITOR LB_HS 100 Mbps Full Duplex 1,2
lan901 Not_Enabled LB_MAC 0 Mbps
lan902 Not_Enabled LB_MAC 0 Mbps
lan903 Not_Enabled LB_MAC 0 Mbps
lan904 Not_Enabled LB_MAC 0 Mbps
# netstat -in
Name Mtu Network Address Ipkts Opkts
lan0 1500 191.1.1.0 191.1.1.1 1794 1173
lo0 4136 127.0.0.0 127.0.0.1 390 390
lan900 1500 192.1.1.0 192.1.1.153 0 0
NOTE: If lanapplyconf encounters an invalid failover group, it stops reading the /etc/
lanmon/lanconfig.ascii file. Any failover groups created prior to this error are
unaffected.
9. The failover group is now operational. A reboot will restart the failover group as long as the
/etc/lanmon/lanconfig.ascii file is intact and the port or link aggregation has an IP
address in /etc/rc.config.d/netconf that matches the failover group's Stationary IP
entry in /etc/lanmon/lanconfig.ascii.
If lan1 fails, lan2 becomes the active port. Similarly, if the failover group consists of two link
aggregates, failover from the active link aggregate to the standby link aggregate occurs only when
all ports in the link aggregate failed. However, the examples in the next section show how proactive
failover gives you greater control of the failover.
Editing configuration files for link aggregates 89