How to configure NIC failover using HP-APA software on hp-ux?
-
The NIC failover is called LAN Monitor on hpux.
To configure LAN Monitor (NIC failover) on hpux perform the following steps:
-
Cable up the server ports to the switch or switches. For redundancy you would have more than on switch on the same subnet.
-
Check connectivity with the command "linkloop"; normally just linkloop -i then Ethernet address of the switch.
# linkloop -i
- Edit the /etc/rc.config.d/hp_apaportconf, add entries for the Primary and Standby ports
HP_APAPORT_INTERFACE_NAME[0]=lan1
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITORHP_APAPORT_INTERFACE_NAME[1]=lan2
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR
.
.
.- Activate the configuration; ignore any cannot open errors.
# /sbin/init.d/hplm stop # /sbin/init.d/hpapa stop # /sbin/init.d/hpapa start # /sbin/init.d/hplm start
-
If you have not assigned the Primary IP address add it to /etc/rc.config.d/netconf. This will configure it after every reboot
-
Query the system for failover groups by running lanqueryconf, the command overwrites the /etc/lanmon/lanconfig.ascii file:
# lanqueryconf -s
- The /etc/lanmon/lanconfig.ascii can be changed to adjust the parameters, then run lancheckconf to verify.
# lancheckconf
- Apply the configuration, make it active.
# lanapplyconf
- Verify the configuration with lanscan -q and netstat -in
# lanscan -q # netstat -in
-
© Lightnetics 2024