chpsam
1
Hi all,
I have gone through many posts related to this issue,but my issue wasn't resolved hence creating new thread.
I am unable to ping localhost.
ping localhost
tries to ping localhost which is defined in DNS.
My /etc/hosts has entry for localhost as
127.0.0.1 loopback localhost
.
My /etc/netsvc.conf has
hosts = local, bind
.
Still i am not able to ping localhost . Please help.
Scott
2
Just a first thought. Is the lo interface up?
chpsam
3
Hi Scott,
I am not aware of command to check the status of loopback service.
Please let me know the command, i will share the results.
Scott
4
Try with:
# ifconfig lo | grep RUNNING
UP LOOPBACK RUNNING MTU:16436 Metric:1
A couple of other questions. Is this a new problem? Are you running a firewall (i.e. iptables)?
chpsam
5
PFB Output
XXXXXXX:/etc->ifconfig lo | grep RUNNING
interface lo is invalid
maybe this issue was since sometime, we came across this when using Datastage application as localhost ping is not working.
And we are not running a firewall for this server.
just to be sure: is netsvc.conf containing:
hosts = local, bind
I do not know for sure, but I have always removed any spaces. And, if you are not using IPv6 you might be happier with
hosts=local4,bind4
chpsam
7
Thanks Michael for the input. I have 2 days holiday. I shall try your suggestions once i am back to office and update this thread.
by the way, the interface name is lo0 not lo
Scott
9
That sounds about right. But on our systems it's just lo for some reason.