LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-17-2003, 02:36 AM   #1
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Rep: Reputation: 0
Unhappy No ping 127.0.0.1


Hi,
First, I explain you :
I've got 3 PC, one under Linux and 2 with Win XP and one have an internet access

I configured Network under Linux and I can ping the 2 Win PC, and I've got internet access.

But, my Linux PC is invisible on the network (for him and others). I can't do on Linux : ping 127.0.0.1, ping 192.168.0.1, ping localhost ..... 100% loss

Normally my firewall is not active.
 
Old 07-17-2003, 03:10 AM   #2
sg3
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Rep: Reputation: 0
whats the output of ifconfig command
Just try to ping your own machine.If it doesnt work then you check the network card configuration

Only if you share your files thro samba , you will be able to see your system in the network
 
Old 07-17-2003, 03:18 AM   #3
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Original Poster
Rep: Reputation: 0
If checked many times my network configuration with many tutorials I found on the Net.

The ifconfig output is normal for the loopback and the card (I can't show it to you right now)

If think that's the problem can come from route or firewall !
 
Old 07-17-2003, 03:24 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I'm not sure about Mandrake, but I know Slackware has a file in /etc/ called "hosts.deny" -- might want to see if you have this file and if it has anything akin to "ALL:ALL" in it
 
Old 07-17-2003, 03:44 AM   #5
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Original Poster
Rep: Reputation: 0
result of the ifconfig :

eth0 Lien encap:Ethernet HWaddr 000:70:02:14:54
inet adr:192.168.0.81 Bcast:192.168.0.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:100
RX bytes:2402 (2.3 Kb) TX bytes:744 (744.0 b)
Interruption:11 Adresse de base:0x3c00

lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:402 errors:0 dropped:0 overruns:0 frame:0
TX packets:402 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:26226 (25.6 Kb) TX bytes:26226 (25.6 Kb)
 
Old 07-17-2003, 04:03 AM   #6
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Original Poster
Rep: Reputation: 0
the hosts.deny :
There is a "ALL:ALL" but there is EXCEPT 127.0.0.1
Is it good ?

[root@serveur etc]# more hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

ALL:ALL EXCEPT 127.0.0.1ENY
 
Old 07-17-2003, 04:20 AM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Try getting rid of that last line; the entire thing. Then try pinging
 
Old 07-17-2003, 05:24 AM   #8
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Original Poster
Rep: Reputation: 0
I've put the line in comment but no change, I cannot ping myself !
 
Old 07-17-2003, 08:55 AM   #9
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Note: The following is for redhat..there may be differences in file names and locations in Mandrake.

You've either got pings being blocked by iptables/ipchains (firewall) or have them disabled in /proc do the following...

echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all

TO turn off your firewall just /etc/init.d/iptables stop
 
Old 07-17-2003, 12:35 PM   #10
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks, now I can do ping 127.0.0.1 and ping localhost
But I can't do ping serveur (hostname) nor ping 192.168.0.1 (his IP adress)
So I can't ping the Linux PC from the others

I can ping 127.0.0.1 due to the command echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Can you explain me what this command mean?

Thanks
 
Old 07-18-2003, 02:06 AM   #11
Spi
LQ Newbie
 
Registered: Jul 2003
Location: Vannes - France
Distribution: Mandrake 9.1
Posts: 13

Original Poster
Rep: Reputation: 0
I've found more details and made some modifications

in the /etc/hosts :
I've assigned the hostname "serveur" for the IP adress 127.0.0.1 instead of localhost.
Now I can do ping serveur

I can ping the two others PC by their IP adress, but there's one that I cant't ping with his name (the one which not have Internet : 192.168.0.3)
 
Old 07-18-2003, 11:16 PM   #12
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Spi: This article will give you a good understanding on the different functions of /proc
http://www.securityfocus.com/infocus/1711
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC4 won't ping 127.0.0.1 or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 05:59 PM
Eth0 present; Cannot ping 127.0.0.1; next step for driver installation? ergogirl Debian 9 10-18-2005 01:27 AM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM
No ping replies on 127.0.0.1 zzero Linux - Networking 14 03-15-2004 10:17 AM

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

All times are GMT -5. The time now is 01:06 PM.

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