Operating System - HP-UX
1823423 Members
2484 Online
109655 Solutions
New Discussion юеВ

Re: ifconfig command hangs

 
SOLVED
Go to solution
Dave Chamberlin
Trusted Contributor

ifconfig command hangs

Remote users are unable to telnet to the server though local users have no problem. This is an N replacing a k200. I noticed that ifconfig lan0 showed the broadcast address as 10.255.255.255 on the new machine and 10.2.255.255 on the old. The netmask was also different (ffff0000 on the old and ff000000 on the new). Thinking this could be causing the telnet problem, I tried using ifconfig to change the broadcast - ie ifconfig lan0 broadcast 10.2.255.255 - the result is that the session was hung and I could no longer telnet to the machine (though I could still connect at the console). What did I do wrong?
2 REPLIES 2

Re: ifconfig command hangs

You should have just reconfigured the interface with the correct netmask - houx would then have figured out the broadcast address itself, i.e.

ifconfig lan0 10.2.x.x netmask 255.255.0.0 up

obviously replacing 10.2.x.x with the actual IP address of the machine.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Massimo Bianchi
Honored Contributor
Solution

Re: ifconfig command hangs

Hi,
i think the command should be
(from console):

ifconfig lan0 down

ifconfig lan0 YOURIP netmask 255.255.0.0

ifconfig lan0 up

Also cehck your routes !

And rememebr to change it in
/etc/rc.config.d/netconf



The command is not hanging, probably you have been disconnected from the host.

That was the problem: clients cannot find the way back to their originating host.

HTH,
Massimo