Operating System - HP-UX
1831676 Members
2169 Online
110029 Solutions
New Discussion

Can not ping 127.0.0.1 from local host.

 
SOLVED
Go to solution
John Goetz
Advisor

Can not ping 127.0.0.1 from local host.

Can not ping 127.0.0.1 (loopback) from local host. I am able to telnet to server and ping gateway and other hosts from server.
Netstat -rn not showing
Destination Gateway Flags 127.0.0.1 127.0.0.1 UH
5 REPLIES 5
Elmar P. Kolkman
Honored Contributor
Solution

Re: Can not ping 127.0.0.1 from local host.

What does 'ifconfig lo0' tell you about the status of the loopback interface?
Every problem has at least one solution. Only some solutions are harder to find.
Robert-Jan Goossens
Honored Contributor

Re: Can not ping 127.0.0.1 from local host.

Hi,

Could you check your hosts file.

# grep localhost /etc/hosts
127.0.0.1 localhost loopback

Regards,
Robert-Jan
John Goetz
Advisor

Re: Can not ping 127.0.0.1 from local host.

# ifconfig lo0
lo0: flags=849
inet 127.0.0.1 netmask ff000000
root @ cgoacvd2 [/etc]
# grep localhost /etc/hosts
127.0.0.1 localhost loopback
root @ cgoacvd2 [/etc]
#
Clemens van Everdingen
Honored Contributor

Re: Can not ping 127.0.0.1 from local host.

Hi,

Can you tell us how your /etc/nsswitch.conf is configure for the hosts

I think it should be hosts files,dns

Clemens
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Elmar P. Kolkman
Honored Contributor

Re: Can not ping 127.0.0.1 from local host.

Your machine is not by any chance configured as firewall?

What happens if you add the route for your loopback back into the routing table? (because without it, it won't use the loopback interface but the default route).
Every problem has at least one solution. Only some solutions are harder to find.