Networking Forums

Networking Forums > Computer Networking > Linux Networking > Still can't ping my Linux box

Reply
Thread Tools Display Modes

Still can't ping my Linux box

 
 
Iain Miller
Guest
Posts: n/a

 
      04-20-2004, 01:28 AM
I've just built my first Linux box & loaded it with Mandrake 10. All is
working, Samba is up & I'm transferring files from my XP box down to the
Linux box over my network.....but I still can't actually ping the damn thing
either from itself to its own IP address (192.168.0.100) or to the Loopback
address and nor can I ping it from either of the two windows workstations I
have - both of which are merrily moving data onto it as I type.

I can also browse the web from it with no problem.

Anyone have any bright ideas?

There are no firewalls running on the Linux box. It just looks like some
parameter is set not to respond to a ping request but being a Linux newbie I
have no idea where to find it!

The 3 PCs are connected to a switch which connects onto a router & then on
to a cable modem for net access. Static IPs all round. One other curious one
was that it didn't like having my router address as the DNS (which works
fine from my Windows boxes). I had to give it my ISP's DNS servers before
the internet connection would work properly. It worked off the router
address but very very slowly - any clues as to why that would be?

rgds

Iain



 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      04-20-2004, 01:49 AM
On Tue, 20 Apr 2004 02:28:25 +0100, Iain Miller wrote:
> I've just built my first Linux box & loaded it with Mandrake 10. All is
> working, Samba is up & I'm transferring files from my XP box down to the
> Linux box over my network.....but I still can't actually ping the damn thing
> either from itself to its own IP address (192.168.0.100) or to the Loopback
> address and nor can I ping it from either of the two windows workstations I
> have - both of which are merrily moving data onto it as I type.
>
> I can also browse the web from it with no problem.


Post the output from the following:

cat /etc/sysconfig/network
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/hosts
route -n
chkconfig --list | grep n
ifconfig
 
Reply With Quote
 
Alberto
Guest
Posts: n/a

 
      04-20-2004, 08:41 AM
What's the output of this:

cat /proc/sys/net/ipv4/icmp_echo_ignore_all

--
Alberto,

 
Reply With Quote
 
Iain Miller
Guest
Posts: n/a

 
      04-20-2004, 11:38 AM

"Alberto" <_(E-Mail Removed)> wrote in message
newsg7fl1-(E-Mail Removed)...
> What's the output of this:
>
> cat /proc/sys/net/ipv4/icmp_echo_ignore_all
>
> --
> Alberto,


Alberto, the output is 1 - which I guess means icmp echo is turned off -
how do I turn it back on?

rgds

Iain



 
Reply With Quote
 
Iain Miller
Guest
Posts: n/a

 
      04-20-2004, 11:42 AM

"Bit Twister" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 20 Apr 2004 02:28:25 +0100, Iain Miller wrote:
> > I've just built my first Linux box & loaded it with Mandrake 10. All is
> > working, Samba is up & I'm transferring files from my XP box down to the
> > Linux box over my network.....but I still can't actually ping the damn

thing
> > either from itself to its own IP address (192.168.0.100) or to the

Loopback
> > address and nor can I ping it from either of the two windows

workstations I
> > have - both of which are merrily moving data onto it as I type.
> >
> > I can also browse the web from it with no problem.

>
> Post the output from the following:
>
> cat /etc/sysconfig/network
> cat /etc/sysconfig/network-scripts/ifcfg-eth0
> cat /etc/hosts
> route -n
> chkconfig --list | grep n
> ifconfig


Output as follows, thanks for looking
rgds

Iain

[root@Python root]# cat /etc/sysconfig/network
NETWORKING=yes
GATEWAY=192.168.0.10
HOSTNAME=Python

[root@Python root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=none
DEVICE=eth0
MTU=""
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
IPADDR=192.168.0.100
NETWORK=192.168.0.0
MII_NOT_SUPPORTED=yes
ONBOOT=yes

[root@Python root]# cat /etc/hosts
192.168.0.101 Cobra
127.0.0.1 localhost
192.168.0.102 Viper
192.168.0.100 Python

[root@Python root]# route -n
Kernel IP routing tableUntitled 1
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0 eth0

[root@Python root]# chkconfig --list|grep n
alsa 0ff 1ff 2n 3n 4n 5n 6ff
dm 0ff 1ff 2ff 3ff 4ff 5n 6ff
kheader 0ff 1ff 2n 3n 4ff 5n 6ff
netfs 0ff 1ff 2ff 3n 4n 5n 6ff
network 0ff 1ff 2n 3n 4n 5n 6ff
partmon 0ff 1ff 2ff 3n 4n 5n 6ff
random 0ff 1ff 2n 3n 4n 5n 6ff
rawdevices 0ff 1ff 2ff 3n 4n 5n 6ff
keytable 0ff 1ff 2n 3n 4n 5n 6ff
syslog 0ff 1ff 2n 3n 4n 5n 6ff
harddrake 0ff 1ff 2ff 3n 4n 5n 6ff
crond 0ff 1ff 2n 3n 4n 5n 6ff
xinetd 0ff 1ff 2ff 3n 4n 5n 6ff
portmap 0ff 1ff 2ff 3n 4n 5n 6ff
xfs 0ff 1ff 2n 3n 4n 5n 6ff
httpd 0ff 1ff 2ff 3n 4n 5n 6ff
postfix 0ff 1ff 2n 3n 4n 5n 6ff
sshd 0ff 1ff 2n 3n 4n 5n 6ff
smb 0ff 1ff 2ff 3n 4ff 5n 6ff
internet 0ff 1ff 2n 3n 4n 5n 6ff
webmin 0ff 1ff 2n 3n 4ff 5n 6ff

[root@Python root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BA:4E:C9:B9
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe4e:c9b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32409178 errors:8 dropped:0 overruns:0 frame:0
TX packets:16044649 errors:0 dropped:0 overruns:6 carrier:0
collisions:0 txqueuelen:1000
RX bytes:733309191 (699.3 Mb) TX bytes:1181797165 (1127.0 Mb)
Interrupt:10

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1869 errors:0 dropped:0 overruns:0 frame:0
TX packets:1869 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:167405 (163.4 Kb) TX bytes:167405 (163.4 Kb)


 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      04-20-2004, 12:08 PM
On Tue, 20 Apr 2004 12:38:50 +0100, Iain Miller wrote:
>
> "Alberto" <_(E-Mail Removed)> wrote in message
> newsg7fl1-(E-Mail Removed)...
>> What's the output of this:
>>
>> cat /proc/sys/net/ipv4/icmp_echo_ignore_all
>>
>> --
>> Alberto,

>
> Alberto, the output is 1 - which I guess means icmp echo is turned off -
> how do I turn it back on?


Look in sysctl.conf and set it =0

To test service network restart then ping.
 
Reply With Quote
 
Joachim =?iso-8859-1?b?TcOmbGFuZCI=?=
Guest
Posts: n/a

 
      04-20-2004, 12:13 PM
On Tue, 20 Apr 2004 12:38:50 +0100, Iain Miller wrote:

>> cat /proc/sys/net/ipv4/icmp_echo_ignore_all


> Alberto, the output is 1 - which I guess means icmp echo is turned off -
> how do I turn it back on?


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

--
mvh/regards
Joachim Mæland

If everything seems under control, you're just not going fast enough.
-Mario Andretti

 
Reply With Quote
 
Iain Miller
Guest
Posts: n/a

 
      04-20-2004, 02:58 PM

"Bit Twister" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 20 Apr 2004 12:38:50 +0100, Iain Miller wrote:
> >
> > "Alberto" <_(E-Mail Removed)> wrote in message
> > newsg7fl1-(E-Mail Removed)...
> >> What's the output of this:
> >>
> >> cat /proc/sys/net/ipv4/icmp_echo_ignore_all
> >>
> >> --
> >> Alberto,

> >
> > Alberto, the output is 1 - which I guess means icmp echo is turned

off -
> > how do I turn it back on?

>
> Look in sysctl.conf and set it =0
>
> To test service network restart then ping.


That's fixed it - thanks very much.

I wonder why it was off by default? It was a pretty standard installation of
Mandrake 10 & about the first thing I did after installation was try & ping
the various interfaces & other devices in my network to see if the network
was up correctly which was when I found the problem. Since I could browse
the web and ping other devices from the box I figured the network was
basically working & so ploughed on with the rest of the configuration

The whole thing has been a bit aggravating & frustrating but now that its
working I have to say I quite like this Linux lark (!)

If I wanted to configure a mail server initially just for outbound (SMTP)
mail (because my ISP's SMTP servers are lousy) would you use Postfix or
Sendmail?

rgds & thanks again

Iain


 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      04-20-2004, 06:54 PM
On Tue, 20 Apr 2004 15:58:25 +0100, Iain Miller wrote:
>
> I wonder why it was off by default?


I was curious why also. Tell me what you security setting is and have
you been playing wity it?

echo SECURE_LEVEL=$SECURE_LEVEL


> It was a pretty standard installation of
> Mandrake 10 & about the first thing I did after installation was try & ping
> the various interfaces & other devices in my network to see if the network
> was up correctly which was when I found the problem. Since I could browse
> the web and ping other devices from the box I figured the network was
> basically working & so ploughed on with the rest of the configuration


Yeah, I have forgotten about the sysctl.conf setting and was sure you
have the firewall running, or a mask/ip setting incorrect.

> If I wanted to configure a mail server initially just for outbound (SMTP)
> mail (because my ISP's SMTP servers are lousy) would you use Postfix or
> Sendmail?


Postfix. http://www.porcupine.org/postfix-mirror/newdoc/

You may wind up using their SMTP mailer anyway. Your ISP may be
blocking your inbound smtp port. Also, since viruses have their own
smtp engines other postmasters trash email if the source is not from a
registered domain. I also had to have a valid email address which
could be looked up for some places to accept it.

So I use canonical to convert (E-Mail Removed)lid to
(E-Mail Removed).
 
Reply With Quote
 
Iain Miller
Guest
Posts: n/a

 
      04-21-2004, 01:49 PM

"Bit Twister" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 20 Apr 2004 15:58:25 +0100, Iain Miller wrote:
> >
> > I wonder why it was off by default?

>
> I was curious why also. Tell me what you security setting is and have
> you been playing wity it?
>
> echo SECURE_LEVEL=$SECURE_LEVEL
>


I think this was the issue - after I changed it it changed itself back
again....similarly I have been having some fun & games with directory
permissions that seemed to keep changing themselves after I'd set them.

I was on security level 4 I'm down at 2 at the moment & hopefully will move
it back up as I get a better undertsanding of how things need to be lined up
between Linux users, groups, file permissions, Samba users, shares and Win
XP configs...(!)

regards & thanks for your help

Iain


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no ping from linux to xp Markus Laux Linux Networking 6 02-05-2006 04:48 PM
Why can't I ping outside the Linux box? JSM Linux Networking 10 06-29-2004 05:25 PM
Windows ping and Linux ping command? tom Linux Networking 5 11-10-2003 08:52 PM
Cannot access Linux Web Page or ping linux server from different subnet. Paul Graves Linux Networking 2 07-20-2003 08:39 AM
Cannot ping linux from different subnet. Paul Graves Linux Networking 0 07-19-2003 07:24 PM



1 2 3 4 5 6 7 8 9 10 11