1833355 Members
3877 Online
110051 Solutions
New Discussion

Re: subnet down

 
khilari
Regular Advisor

subnet down

hi people, the prob is that i have configured 2 lans. lan 0 and lan1 and its a mc/service guard environment.
now what that did was that it brought down the whole subnet they were on.
How do i get rid of the lan1. i tried ifconfig lan1 down but nothing happened. as that is duplicating the gateway.
Any suggestions....
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: subnet down

Shalom khilari,

HP-UX in contrast to Linux or windows can not operate in a networking environment with two NIC cards on the same network.

If lan0 is 192.168.0.10 and netmask is 255.255.255.0 then the network is 192.168.0 and no other NIC should be up on the same network.

Reconfigure your system and cluster so that this rule is complied with. Its okay to have a standby LAN card for SG on the same network as active, but you should never have two NIC cards active on the same network at the same time.

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
khilari
Regular Advisor

Re: subnet down

True, so how should i disable it. ifconfig lan 1 is not really working. In the netconf file i havnt put in the entry....
When i run netstat -rn. I see it.???.
Sung Oh
Respected Contributor

Re: subnet down

Hi Khilari,

You have option of using "ifconfig" or "set_parms" to configure your network card. And if you need to stop right away, you could run

#/etc/init.d/net stop
above will stop all network services

and here are some other useful method for you to consider.

# lanscan
# ifconfig lan0
# ifconfig lan0 up
# ifconfig lan0 down
# ifconfig lan0 192.168.1.1 netmask 255.255.255.0 up
# arp -a
# netstat -nr
# route add default 192.168.1.254 1
# lanadmin

some GUI tools
# sam
# set_parms

Regards,
Sung


Armin Kunaschik
Esteemed Contributor

Re: subnet down

Did you configure the same IP on both adapters?
This will not work...
If both lan's are on the same subnet, configure one adapter as standby for the other.
The passive adapter takes over the IP (and all aliases) in case of a link failure.
See Service Guard documentation http://docs.hp.com/en/ha.html#Serviceguard for more detail!

My 2 cents,
Armin
And now for something completely different...
Senthil Kumar .A_1
Honored Contributor

Re: subnet down

hi,

Try the following,...

ifconfig lan1 down
ifconfig lan1 unplumb

Also make sure you have removed the lan config details in /etc/rc.config.d/netconf file for lan1.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)