Re: Can not ping localhost -- all looks correct...

From: Jeffrey D. Yuille (jeffy5_at_optonline.net)
Date: 11/06/04


Date: Sat, 06 Nov 2004 17:33:54 GMT

Ringo Langly wrote:

> Hi all,
>
> I'm on Slackware 10, and something odd:
>
> # ping localhost
> ping: unknown host localhost
>
> Here's my /etc/hosts file:
> 127.0.0.1 localhost
>
> And here's ifconfig -a:
> eth0 Link encap:Ethernet HWaddr 00:B0:D0:71:F9:0A
> inet addr:10.142.104.96 Bcast:10.142.104.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:28206550 errors:0 dropped:0 overruns:16 frame:0
> TX packets:7053818 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1518171894 (1447.8 Mb) TX bytes:3166339841 (3019.6
> Mb)
> Interrupt:5 Base address:0xec00
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:174430 errors:0 dropped:0 overruns:0 frame:0
> TX packets:174430 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:27679796 (26.3 Mb) TX bytes:27679796 (26.3 Mb)
>
> From what I can tell all is setup properly, but I can't ping
> localhost. What prompted this problem was when I'm trying to setup an
> IP printer I get the following error:
> Get_local_host: 'localhost' IP address not available!
>
> Any ideas? PC is clean and full install of Slackware 10.
>
> Thanks,
>
> Ringo

Hello Ringo,

     I am having (or should I say, "was having") the same problem with my
laptop. I only discovered this error when I could not set up remote
printing from my laptop. I have a Dell Inspiron 4000 Laptop with Fedora
Core 3rc3 installed on it. I also have a wireless card attached to it. I
am able to connect to the internet and everything seems to be okay except
for the fact that I cannot see the DHCP local address when I go to the
command line but I am getting a similar error which says "Local Host
Unknown". The wireless card applet shows the DHCP local address but when I
ping the localhost (that is, the laptop) , I get the "Local Host Unknown"
error. The only difference between my setup and yours is that I am on a
local are network and your computer is a standalone computer. What I did
to get the remote printing up and running again was to go back to putting
Mandrake Linux 10.0 back on the print server (the desktop where the printer
is attached) where Fedora Core 2 was previously running.

     When I get more info on this error, I will notify you.



Relevant Pages