Operating System - HP-UX
1832605 Members
2604 Online
110043 Solutions
New Discussion

Re: Switch Lan from Primary to Seconday using command line?

 
SOLVED
Go to solution
Jason Baldwin
Occasional Advisor

Switch Lan from Primary to Seconday using command line?

Is it possible to swith the lan from a primary connection to a secondary connection?

Info:

Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 8/0/1/0 lan1
PRIMARY up 8/0/2/0 lan2
PRIMARY up 8/4/1/0 lan3
STANDBY up 10/8/2/0 lan5
STANDBY up 10/8/1/0 lan4

Lans 1 and 5 are paired and Lans 2 and 4 are paired.

So I would like to have Lan 5 active for the purpose of testing the redundant link. I know pulling the cable out would do the trick but the system is remote so I would like a command line to achieve this.

Thanks
Jason
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: Switch Lan from Primary to Seconday using command line?

Unfortunately the answer is no, you cannot do this.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Petr Simik_1
Valued Contributor

Re: Switch Lan from Primary to Seconday using command line?

to test this you have to plug-out the cable from active lan to perform switch to secondary. What about disabling for a while by using script primary conection to generate failure and pursue server to switch to secondary LAN.
This moreless another question more than answer to your query.
Darrell Allen
Honored Contributor
Solution

Re: Switch Lan from Primary to Seconday using command line?

Hi Jason,

Can you (or someone else) login to the switch and disable the port for lan1?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Darrell Allen
Honored Contributor

Re: Switch Lan from Primary to Seconday using command line?

Another thought...

If you simply want to test the link without regards to ServiceGuard, you can use ifconfig to change the ip address and down lan1, then change the ip address and up lan5.

I'd stop ServiceGuard first.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Jason Baldwin
Occasional Advisor

Re: Switch Lan from Primary to Seconday using command line?

Darrell,

You hit the nail on the head with your thinking outside of the box.

I used lanscan to determine the Station Address for lan1 and then looked on the lan switch for a port that has this address attached, I then disabled this port.

Logging on from the other node over a different lan allowed me to see the cluster status, lan1 down! After a brief pause I could then telnet in via lan5 and continue testing!

This was on the lab system so I'll have a go at this on the remote system soon!

Thanks again,

Jason