Operating System - HP-UX
1832869 Members
4941 Online
110048 Solutions
New Discussion

Re: Ping to localhost failed

 
Hari Pantja
New Member

Ping to localhost failed

Dear all,

I can't ping from my server to it's localhost.
I've checked to files /etc/hosts and /etc/rc.config.d/netconf and the entry localhost already in there.

Pls help me to resolve this problem.

thanks,

Hari
9 REPLIES 9
Elmar P. Kolkman
Honored Contributor

Re: Ping to localhost failed

For this we need more info.
Could you check your route table (netstat -rn)?
And try 'ping 127.0.0.1' to make sure that the problem is not DNS/NIS related.
Also make sure there is no firewall software installed dropping icmp packats on all interfaces, including your loopback interface.

If you can't solve it with this info, send us the output of netstat -rn, your localhost entry from /etc/host and the ifconfig output for lo0 and other interfaces.
Every problem has at least one solution. Only some solutions are harder to find.
aparna challagulla
Valued Contributor

Re: Ping to localhost failed

hi Hari,
check /etc/nsswitch.conf file also.
it should have an entry for hosts.
HTH
aparna
If you don't have time to do it right you must have time to do it over
John Waller
Esteemed Contributor

Re: Ping to localhost failed

Hi
You mention that you have looked in netconf and the entry localhost is in there, is this under the entry LOOPBACK_ADDRESS. Also does a "netstat -i" command show something like
lo0 4136 127.0.0.0 localhost 16057352 16057353

Hari Pantja
New Member

Re: Ping to localhost failed

Thanks Elmar & Aparma,

The problem has been solved by shutting down lo0 and the start again lo0 by ifconfig command. But the problem occurs again and again.

what should i do ? what can cause this problem ?
thanks

Hari
Elmar P. Kolkman
Honored Contributor

Re: Ping to localhost failed

I have seen this before, but not on a loopback device... It happened to me on a route that was removed after some time because the gateway was not pingable. Could it be that you have some extra routes that are (accidentially) going through your loopback device ?

I don't know by head, but there is a ndd parameter to disable the checking of gateways HP-ux 11 does by default. A way for someone else to score some extra points...
Every problem has at least one solution. Only some solutions are harder to find.
RAC_1
Honored Contributor

Re: Ping to localhost failed

That ndd para. is ip_ire_gw_probe.
Should be disabled.

But that should have any effet on loopback.
There is no substitute to HARDWORK
Hari Pantja
New Member

Re: Ping to localhost failed

I give you output from netstat -i

BR,

Hari
Animesh Chakraborty
Honored Contributor

Re: Ping to localhost failed

Hi Hari,
We had remove PHNE_28895 and installed PHNE_28089 patch when we faced this similar problem.
This is for hpux11i.

Hope this helps.

Thanks
Animesh
Did you take a backup?
Norman_21
Honored Contributor

Re: Ping to localhost failed

Hello,

Edit the /etc/auth/system/devassign file and add the following entry for the lo0 loopback interface:

lo0:v_type=nic:v_cursl=WILDCARD:chkent:
Save the changes to the /etc/auth/system/devassign file.

# ifconfig lo0 up

look at the HP TKB# PAJ970708001

Hope this help
Thanks
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003