Click to See Complete Forum and Search --> : Help I can't ping myself


Skywolf
12-11-2002, 06:13 PM
Okay, as stupid as this sounds:

I have setup an Apache Webserver on a Mandrake 9.0 machine. When I access the machine from my LAN, I can call up both Apache and Webmin - no problem.

However, when I try to ping... (from the LAN, from localhost, or from the internet) The request times out.

I have turned off shorewall and iptables just to see if that worked, and I still couldn't ping.

Any ideas? The server is behind a cable/dsl router (DI-604). But the strange part is that I can't even ping the machine from the machine, yet I access Apache, Webmin, AND FTP no problem from another computer on the LAN (A Windoze ME computer). I've even tried taking the router out of the loop, but that hasn't help (as I would surmise since ping localhost fails).

Oh, and the little green light on the card is lit, too (obviously :))

Any help would be greatly appreciated...

-S

Hayl
12-11-2002, 06:17 PM
take a look at /etc/hosts and make sure your computer is in there with the right ip

jumpedintothefire
12-11-2002, 07:40 PM
do a
cat /proc/sys/net/ipv4/icmp_echo_ignore_all

if it comes back with a 1 then pings are off
to turn

echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
retest...

Skywolf
12-12-2002, 10:20 AM
Well, guys, I tried both your suggestions - I made sure localhost was in my etc/hosts (it is) (still can't ping), and I tried the cat /blah blah, and, indeed, did get a "1". So I did the echo 0 cat/blah/blah, and retested.

On the retest, I got a "1" again.

(Shrug)

I'm still at a loss. Any other suggestions?

-S
(Thanks for the help so far, though!)

Skywolf
12-12-2002, 10:21 AM
Oh, wait, I forgot the ">" part of the echo 0. Will try again.

But how do I get the pings to turn on by default? What's turning them off? Anybody know?

-S

jumpedintothefire
12-12-2002, 11:11 AM
check /etc/sysctl.conf

Skywolf
12-12-2002, 05:31 PM
Okay folks... That did the trick. Thanks again!

-S