Operating System - HP-UX
1833042 Members
2213 Online
110049 Solutions
New Discussion

Re: NIC card Fail-Over configuration

 
Nikee Reddy
Regular Advisor

NIC card Fail-Over configuration

Hello,

We have 2 NIC cards in the server. One of them should serve as a primary NIC card and other one should server as a secondary/fail-over.

Here is the primary NIC config:
#8/8/1/0
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=198.102.24.133
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]="198.102.24.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

Please let me know how can I configure the 8/12/2/0 NIC as a fil-over to the first card?

Thanks,
Nikee
8 REPLIES 8
John Payne_2
Honored Contributor

Re: NIC card Fail-Over configuration

one way is to purchase the product called 'Auto port Aggregation (APA)' and set up the cards as an aggregate. It allows you to either aggregate the cards together to give a bigger pipe, and/or set up a failover port. We have this on one of our machines, and it works great after you patch it...

Hope it helps

John
Spoon!!!!
A. Clay Stephenson
Acclaimed Contributor

Re: NIC card Fail-Over configuration

There is no standard "failover" method. You need to purchase Auto-Port Aggregation (APA) or ServiceGuard. APA is probably you best choice although it would be possible to script a solution around the ifconfig command.
If it ain't broke, I can fix that.
Dagmar Boelen
Frequent Advisor

Re: NIC card Fail-Over configuration

Hi,

I think MC Service Guard can do the thrick. I'll try to find a manual for you!
melvyn burnard
Honored Contributor

Re: NIC card Fail-Over configuration

there is nothing standard to let you do this, you would have to look at APA, see:
http://docs.hp.com/hpux/netcom/index.html#Auto%20Port%20Aggregation%20(APA)

or use ServiecGuard, see the Managing MC/ServiceGuard manual at:
http://docs.hp.com/hpux/netcom/index.html#Auto%20Port%20Aggregation%20(APA)
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Steven E. Protter
Exalted Contributor

Re: NIC card Fail-Over configuration

Here is a scratch script.

Poor man's service guard. Absolutely untested.

assumes primary NIC is lan0 secondary is lan1

# try five times, timeout is 30 seconds

ping hps_ip_address -n 5 -m 30
rc=$?
if [ rc ne 0 ]
then
mailx -s "NIC failover occurred" sysadmins@yourdomain.com
ifconfig lan0 down
ifconfig lan1 192.168.0.15 netmask 255.255.255.0 up
rc=$?
fi

if [ rc ne 0 ]
mailx -s "NIC failover attempt failed" sysadmins@yourdomain.com
fi

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
Caesar_3
Esteemed Contributor

Re: NIC card Fail-Over configuration

Hello!

HPUX had no option that build in and if you
want so you need to by auto-port aggregation
that will do the job.

Caesar
Bill Hassell
Honored Contributor

Re: NIC card Fail-Over configuration

You need to define failover more accurately. While APA will allow you to configure both cards with the same address and use both at the same time, failover implies multiple paths to the network. Just having a spare card doesn't provide much redundancy. You need to have your network switch setup to provide proper failover too--APA requires features that don't exist in most switches. And a good failover solution would include redundant switches.


Bill Hassell, sysadmin
Suresh Patoria
Super Advisor

Re: NIC card Fail-Over configuration

Hi,

Following entry put in the /etc/rc.config.d/netconf file

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=192.102.24.*
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]="198.102.24.255"
INTERFACE_STATE[1]""
DHCP_ENABLE[1]=0

and also put the ip address entry in /etc/hosts file

and restart the service or system

check the through ifconfig,lanscan, netstat -in or lanadmin whether all interface up or not