Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-03-2004, 09:23 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Posts: 3
Rep:
|
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
|
|
|
03-03-2004, 09:32 PM
|
#2
|
Member
Registered: Jan 2004
Posts: 54
Rep:
|
have you tried
#echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all ???
|
|
|
03-03-2004, 09:36 PM
|
#3
|
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019
Rep:
|
try the command
Code:
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Then try to ping....
|
|
|
03-03-2004, 09:41 PM
|
#4
|
Member
Registered: Jan 2004
Posts: 54
Rep:
|
opps sorry ..my bad...that snippet was takes directly off my own settings
yes you should do
echo 0 (sets the rule to false)
|
|
|
03-03-2004, 09:52 PM
|
#5
|
LQ Newbie
Registered: Mar 2004
Posts: 3
Original Poster
Rep:
|
superb :-) :-) :-), that seemed to work
What does that command do?? 
|
|
|
03-03-2004, 09:54 PM
|
#6
|
LQ Newbie
Registered: Mar 2004
Posts: 3
Original Poster
Rep:
|
Also,
How come this did not affect me pinging my router??
|
|
|
03-03-2004, 09:57 PM
|
#7
|
Member
Registered: Jan 2004
Posts: 54
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 03:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|