Unable to ping localhost | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Unable to ping localhost

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-21-2012
chpsam chpsam is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 27 August 2013, 6:10 AM EDT
Posts: 19
Thanks: 8
Thanked 2 Times in 1 Post
Unable to ping localhost

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.


Code:
ping localhost

tries to ping localhost which is defined in DNS.

My /etc/hosts has entry for localhost as


Code:
127.0.0.1 loopback localhost

.

My /etc/netsvc.conf has
Code:
hosts = local, bind

.

Still i am not able to ping localhost . Please help.
Sponsored Links
    #2  
Old 12-21-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 14 September 2014, 10:50 PM EDT
Location: Zürich
Posts: 8,475
Thanks: 331
Thanked 1,046 Times in 913 Posts
Just a first thought. Is the lo interface up?
Sponsored Links
    #3  
Old 12-21-2012
chpsam chpsam is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 27 August 2013, 6:10 AM EDT
Posts: 19
Thanks: 8
Thanked 2 Times in 1 Post
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.
    #4  
Old 12-21-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 14 September 2014, 10:50 PM EDT
Location: Zürich
Posts: 8,475
Thanks: 331
Thanked 1,046 Times in 913 Posts
Try with:
Code:
# 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)?
Sponsored Links
    #5  
Old 12-21-2012
chpsam chpsam is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 27 August 2013, 6:10 AM EDT
Posts: 19
Thanks: 8
Thanked 2 Times in 1 Post
PFB Output

Code:
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.
Sponsored Links
    #6  
Old 12-21-2012
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 11 December 2013, 7:33 AM EST
Location: on the road for work; home is private time
Posts: 311
Thanks: 6
Thanked 75 Times in 71 Posts
just to be sure: is netsvc.conf containing:


Code:
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


Code:
hosts=local4,bind4

Sponsored Links
    #7  
Old 12-22-2012
chpsam chpsam is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 27 August 2013, 6:10 AM EDT
Posts: 19
Thanks: 8
Thanked 2 Times in 1 Post
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to ping Windows jayanto Solaris 4 01-18-2012 05:26 AM
Unable to ping New server suresh_krish Solaris 1 10-29-2010 11:06 AM
unable to ping sak900354 UNIX for Dummies Questions & Answers 2 01-02-2007 08:57 AM
unable ping ipaddress pdoug76 UNIX for Dummies Questions & Answers 1 05-30-2003 10:25 AM
NIC The Status Down but I can ping the localhost??!! geoquest UNIX for Dummies Questions & Answers 3 09-02-2002 07:20 AM



All times are GMT -4. The time now is 12:01 AM.