LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2004, 08:23 PM   #1
mandrakemark
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Can't ping localhost


HELP!! This is driving me up the wall.

I have just installed Mandrake 9.2 and I can't get a response from pinging localhost

1. Both lo and eth0 interfaces are up okay
2. /etc/hosts file correctly reflects localhost ( plus my own host )
3. The route table appears to be correct

I initially installed the system with security setting to Higher. Thinking this might be aproblem I set it to standard but this had no affect.

Interestingly enough if I plug my box into my ADSL/router I can ping the router without any problems

I can also hit localhost over http but I can't ping either 127.0.0.1 or my own host ( 192.168.1.2 )

The ping just times out withh 100% packet loss

I have also checked IPTables and all chains are set to Accept policy with now rules

Any ideas will be greatly apprciated as I am at a loss what to check next
 
Old 03-03-2004, 08:32 PM   #2
Skunk_Face
Member
 
Registered: Jan 2004
Posts: 54

Rep: Reputation: 15
have you tried

#echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all ???
 
Old 03-03-2004, 08:36 PM   #3
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
try the command
Code:
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Then try to ping....
 
Old 03-03-2004, 08:41 PM   #4
Skunk_Face
Member
 
Registered: Jan 2004
Posts: 54

Rep: Reputation: 15
opps sorry ..my bad...that snippet was takes directly off my own settings

yes you should do

echo 0 (sets the rule to false)
 
Old 03-03-2004, 08:52 PM   #5
mandrakemark
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
superb :-) :-) :-), that seemed to work

What does that command do??
 
Old 03-03-2004, 08:54 PM   #6
mandrakemark
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Also,

How come this did not affect me pinging my router??
 
Old 03-03-2004, 08:57 PM   #7
Skunk_Face
Member
 
Registered: Jan 2004
Posts: 54

Rep: Reputation: 15
basically tells ur box not to reply to icmp_echo (aka ping) requests.
echo 1 sets it to "true" (all ping requests are ignored)
echo 0 sets it to "false" (replies to ping requests)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Can't ping localhost (ping: sendto: Operation not permitted) mentor99us Linux - Networking 7 09-05-2012 02:11 PM
MDK 9.2, Can't ping localhost but can ping outside world? JohnLocke Linux - Networking 2 07-01-2004 05:59 PM
? on not being able to ping localhost eroica Linux - Networking 13 04-01-2004 03:58 PM
Can't Ping Localhost themorph Linux - Networking 1 02-16-2002 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration