1830898 Members
2234 Online
110017 Solutions
New Discussion

Re: IP Backup

 
David_492
Advisor

IP Backup

Dear All

if i have two ethernet port each port on different I/O Card and they are on the same network and subnet and i want to use just one IP and the other is backup in case the first one is down can i make it?(the server is HP Unix rp8400)?

Thank You
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: IP Backup

I believe you can do it but because they are on the same network and subnet you must use the software Autoport aggregation to do it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steven E. Protter
Exalted Contributor

Re: IP Backup

Without add in products you can run an occaisional ping test to see if the network is up.

ping -n 1 -m30 hostname
rc=$?

# if return code not equal zero ie success
if [ $rc -ne 0 ] then
#bring up backup card on the same network
else
# all is well
fi

Remember that with HP-UX you can not bring up to NIC cards on the same network.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Abramson_2
Honored Contributor

Re: IP Backup

You can do this with MC/ServiceGuard, or with APA (auto-port-aggregation). Otherwise your "backup" is manual reconfiguration.
rick jones
Honored Contributor

Re: IP Backup

The "best" way to do this is with Auto Port Aggregation (aka APA). It will allow you to boind the two interfaces into one aggregate, which the transport will see as a single interface. You can decide if you want active/active or active/standby.

MC/ServiceGuard I believe does just active/standby, but it has been a long time since I last looked.

Finally, if you are unwilling to spend the money for APA, but are willing to do some work, you could perhaps do some scripting with ping and/or linkloop(1m) to guesstimate when the active NIC fails, ifconfig it down and ifconfig the standby NIC into operation.

My personal suggestion is to go the APA route - when things aren't quite working you can then yell at HP rather than having to fix your scripts :)
there is no rest for the wicked yet the virtuous have no pillows