Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pinging from linux to windows does not work (but vice versa works)

3,600 views
Skip to first unread message

wkevin

unread,
Jun 28, 2013, 2:45:46 PM6/28/13
to
Hello,
I have this strange problem:
I have a windows machine, 192.168.2.120
I have a Linux machine, 192.168.2.200
They are connected via a router, which has IP address of 192.168.2.1

The default gateway of both machines is the router,
192.168.2.1.

I can ping from windows to Linux.
I cannot ping from Linux to windows (But I **do** see the PING
packet which are sent from Linux in the windows wireshark sniffer)

I checked sw on windows: the Lavasofy AdAware does not block pings.
not there is anything in the windows firewall which block pings.

What can it be ? any ideas?


regards,
Kevin

Alastair Black

unread,
Jun 28, 2013, 3:15:10 PM6/28/13
to
It could be a wording problem. You say you cannot
'ping from Linux to Windows'. But the packets
do show up at the Windows machine. This means that
they are *not* turned around and echoed by the
Windows machine. So, we restate it as:

"...Windows does not return pings sent from
Linux machine..."

Try troubleshooting further armed with that
information. Also, what are you using at the
Linux machine to monitor? Just the terminal?

Alastair

David Brown

unread,
Jun 28, 2013, 3:56:03 PM6/28/13
to
Try arping, and see if that gets through. It works at a lower level
(ARP), and is much less likely to be blocked by some sort of firewall.

Charlie Gibbs

unread,
Jun 28, 2013, 9:29:52 PM6/28/13
to
In article <kqknbv$kqr$1...@n102.xanadu-bbs.net>, abqab...@example.net
(Alastair Black) writes:

> On 06/28/2013 12:45 PM, wkevin wrote:
>
>> Hello,
>> I have this strange problem:
>> I have a windows machine, 192.168.2.120
>> I have a Linux machine, 192.168.2.200
>> They are connected via a router, which has IP address of 192.168.2.1
>>
>> The default gateway of both machines is the router,
>> 192.168.2.1.
>>
>> I can ping from windows to Linux.
>> I cannot ping from Linux to windows (But I **do** see the PING
>> packet which are sent from Linux in the windows wireshark sniffer)
>>
>> I checked sw on windows: the Lavasofy AdAware does not block pings.
>> not there is anything in the windows firewall which block pings.
>>
>> What can it be ? any ideas?
>
> It could be a wording problem. You say you cannot
> 'ping from Linux to Windows'. But the packets
> do show up at the Windows machine. This means that
> they are *not* turned around and echoed by the
> Windows machine. So, we restate it as:
>
> "...Windows does not return pings sent from
> Linux machine..."
>
> Try troubleshooting further armed with that
> information. Also, what are you using at the
> Linux machine to monitor? Just the terminal?

And tell us which version of Windows you're using.
W7 loves to declare other machines persona non grata.

--
/~\ cgi...@kltpzyxm.invalid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!

zyxgn...@gmail.com

unread,
Jun 28, 2013, 10:30:18 PM6/28/13
to
is your windows firewall on? if it's on, you might not ping through.

jamest...@gmail.com

unread,
May 21, 2017, 12:59:39 PM5/21/17
to
Experienced this problem with direct ethernet cable link between Win7 & CentOS7.
Set Windows Firewall to permit ICMP packets for ipv4 file and print sharing.
Then check that file and print sharing is active on the windows nic.
Also set internet on a nokia BT mobile link to share with the LAN.
No router nor switch involved, might try this later for dhcp however there may
be issues with DNS lookup.
Cheers.

Dan Purgert

unread,
May 22, 2017, 8:27:18 AM5/22/17
to
Can you ping directly to the winbox IP? IF so, then you likely need to
check /etc/hosts to ensure it's pointing at the right IP for the
winbox's hostname.

Otherwise, sounds like win firewall isn't listening to you.

--
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
0 new messages