You are not logged in.

#1 2011-06-13 15:10:28

triumphguy
Member
From: Alabama, USA
Registered: 2010-12-26
Posts: 31

[SOLVED] Can't Ping localhost

I loaded Arch on a new machine and I'm unable to ping localhost.  However, I am able to ping 127.0.0.1.  I have two other computers that have Arch loaded with no issues.  I need a little help trying to debug this issue.  Are there other files that might have issues?

hosts file

 

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1    localhost.localdomain    localhost moorero
::1        localhost.localdomain    localhost

# End of file

Last edited by triumphguy (2011-06-14 13:34:57)

Offline

#2 2011-06-13 23:57:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] Can't Ping localhost

Check /etc/nsswitch.conf
Here's mine:

# Begin /etc/nsswitch.conf

passwd: files
group: files
shadow: files

publickey: files

hosts: files dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

# End /etc/nsswitch.conf

Offline

#3 2011-06-14 00:26:15

nbtrap
Member
Registered: 2011-02-24
Posts: 110

Re: [SOLVED] Can't Ping localhost

Do you have internet access?

Offline

#4 2011-06-14 05:27:56

wojox
Member
From: San Antonio TX.
Registered: 2009-08-27
Posts: 35

Re: [SOLVED] Can't Ping localhost

What does this file look like?

cat /etc/rc.conf

“Simplicity is the key to brilliance.” - Bruce Lee

Offline

#5 2011-06-14 13:34:37

triumphguy
Member
From: Alabama, USA
Registered: 2010-12-26
Posts: 31

Re: [SOLVED] Can't Ping localhost

Comparing my file to the file fukawi2 posted, they were identical.  I decided to recreate the nsswitch.conf file and the problem is solved.  Not sure if the file had a corrupt character somewhere or what.

For anyone else who may stumble upon this, here is some additional information.  I was able to access the internet and everything functioned as expected as long as 127.0.0.1 was used instead of localhost.

Offline

Board footer

Powered by FluxBB