Go Back   The UNIX and Linux Forums > Operating Systems > AIX


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

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-21-2012
Registered User
 
Join Date: Jun 2012
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 online now Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 7,165
Thanks: 229
Thanked 808 Times in 698 Posts
Just a first thought. Is the lo interface up?
Sponsored Links
    #3  
Old 12-21-2012
Registered User
 
Join Date: Jun 2012
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 online now Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 7,165
Thanks: 229
Thanked 808 Times in 698 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
Registered User
 
Join Date: Jun 2012
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
Registered User
 
Join Date: Nov 2012
Location: on the road for work; home is private time
Posts: 269
Thanks: 6
Thanked 65 Times in 62 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
Registered User
 
Join Date: Jun 2012
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
Reply

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 08:45 PM.