Operating System - HP-UX
1833750 Members
2491 Online
110063 Solutions
New Discussion

Re: can ifconfig work this way ?

 
cgzou
Occasional Advisor

can ifconfig work this way ?

hello all,

ifconfig lan1:0 0
ifconfig lan1:1 x.x.x.x
skip 2 and 3
ifconfig lan1:4 y.y.y.y

The reason I issue the first command is to avoid that complain that the "primary interface must first configured" problem.

Any input is appreciated!
thanks,

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: can ifconfig work this way ?

I don't think its going to work.

The primary interface needs to be configured.

You can not have two lan's on the same network and subnet. If you try and issue such a command on an HP-UX box networking will stop functioning.

Instantly.

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
cgzou
Occasional Advisor

Re: can ifconfig work this way ?

x.x.x.x and y.y.y.y will be on the same subnet. Is it still a problem?

I have tried to issue the following commands on one of the lan card(not physically connected, I can't verify that through a ping), it didn't give any warning:

ifconfig lan1:0 0
ifconfig lan1:2 x.x.x.x

So can someone verify that is it going to work? which means you can still reach x.x.x.x through lan1 even though the primary not configured.

By the way, what is the maximun # of index we can use for lan1:index? ( this is not critical issue for me though)

Thank you!










Sridhar Bhaskarla
Honored Contributor

Re: can ifconfig work this way ?

Hi,

I am not able to think of any reasons why it won't work.

You should be ok unless you have ServiceGuard on them. You may get into issues if you try to run cmquerycl etc.,.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: can ifconfig work this way ?

Service guard wasn't mentioned here. The configuration won't work on a single machine. I accidently tried something like that and report actual results earlier.

Though not a service guard expert, nothing I posted has anything to do with service guard setup.

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
T G Manikandan
Honored Contributor

Re: can ifconfig work this way ?

you can do that