You are not logged in.

#1 2010-04-20 18:29:00

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Cannot ping local machines

Hello,
I've got a little problem - although I can ping my router and google too, i can't ping nor be pinged by other two machines on my lan, both running windows. I have no idea what can be wrong, nor have found anything useful. A few weeks ago everything was ok.

Could you please help me or give me any directions? Thanks in advance!

Offline

#2 2010-04-20 19:29:26

skazhy
Member
From: Riga, Latvia
Registered: 2009-07-01
Posts: 46

Re: Cannot ping local machines

if all machines have static IPs, check if gateway / subnet mask is the same.

Offline

#3 2010-04-20 19:43:15

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

Yes, they do have static ips and gateway is set to 10.0.0.138 (router) and subnet mask to 255.255.255.0 on all of them.

I forgot to mention that the windows machines are able to ping each other...

Last edited by mjk (2010-04-20 19:44:36)

Offline

#4 2010-04-20 22:40:25

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Cannot ping local machines

Are you pinging via hostname or IP address?

Offline

#5 2010-04-21 14:53:08

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

via IP address

now I see I haven't even inserted the error message

$  ping 10.0.0.6
PING 10.0.0.6 (10.0.0.6) 56(84) bytes of data.
From 10.0.0.4 icmp_seq=1 Destination Host Unreachable
From 10.0.0.4 icmp_seq=2 Destination Host Unreachable
From 10.0.0.4 icmp_seq=3 Destination Host Unreachable
^C
--- 10.0.0.6 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7020ms
pipe 3

Last edited by mjk (2010-04-21 15:15:10)

Offline

#6 2010-04-21 15:15:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot ping local machines

Are you wired or wireless?
It is not required, but what happens if you set your nic to promiscuous mode?
Anything interesting in the router? Is your address by any chance configured as a DMZ?
Try Wireshark or tcpdump and see what, if any, packets are actually on the LAN.
What is the output of 'routes'?

Last edited by ewaller (2010-04-21 15:16:43)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2010-04-21 15:28:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot ping local machines

Also,

gateway is set to 10.0.0.138 (router) and subnet mask to 255.255.255.0

*.*.*.138 is an odd place for a router.
Also, you are configured as a class A private network (10.*.*.*)  Are you sure the subnet mask should be 255.255.255.0?

I thought is should be 255.0.0.0, but I could be wrong.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2010-04-21 15:46:19

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

At the moment wired, tried both.
As i understood it, it's not configured as DMZ.
Setting NIC to promiscuous mode changes nothing.
The output of route is

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
default           viking          0.0.0.0         UG    0      0        0 eth0

Offline

#9 2010-04-21 15:53:37

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

ewaller wrote:

Also,

gateway is set to 10.0.0.138 (router) and subnet mask to 255.255.255.0

*.*.*.138 is an odd place for a router.
Also, you are configured as a class A private network (10.*.*.*)  Are you sure the subnet mask should be 255.255.255.0?

I thought is should be 255.0.0.0, but I could be wrong.

You could be right, i don't know. The IP is the default setting, I might changed the subnet mask, but if, then very long time ago.

Offline

#10 2010-04-21 16:01:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot ping local machines

where is 'viking' defined -- can you verify it is set to 10.0.0.138?

(You can tell routes to give the answers in IP address format.  Unfortunately, I'm in front of a windows machine and my ssl link to my Linux box is down, so i cannot verify the command format)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2010-04-21 16:12:56

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

ewaller wrote:

where is 'viking' defined -- can you verify it is set to 10.0.0.138?

(You can tell routes to give the answers in IP address format.  Unfortunately, I'm in front of a windows machine and my ssl link to my Linux box is down, so i cannot verify the command format)

# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain   localhost eddie
10.0.0.138                                      viking

Offline

#12 2010-04-21 17:15:27

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

when i run ping, tcpdump shows this:

...
19:09:18.470654 ARP, Request who-has 10.0.0.6 tell 10.0.0.4, length 28
19:09:19.469847 ARP, Request who-has 10.0.0.6 tell 10.0.0.4, length 28
19:09:20.486487 ARP, Request who-has 10.0.0.6 tell 10.0.0.4, length 28
19:09:21.486486 ARP, Request who-has 10.0.0.6 tell 10.0.0.4, length 28
...

Offline

#13 2010-04-23 09:13:38

mjk
Member
From: Czech Republic
Registered: 2009-08-20
Posts: 10

Re: Cannot ping local machines

After lots of trying I suddenly discovered that when both arch and windows box use wireless connection, they can ping each other (I'm pretty sure they couldn't in the beginning), but still can't when at least one of them uses wired connection. Does anyone know what it could mean?

Offline

Board footer

Powered by FluxBB