Solved

Linux machine cannot ping windows machine on the same network

Posted on 2008-10-01
9
1,639 Views
Last Modified: 2012-05-05
I have two machines on Network.local, a linux machine and a windows machine. The windows machine can ping the linux machine. The linux machine can ping google.com, etc but can't ping any machines locally including the windows machine.

Have no idea what is going on here
0
Comment
Question by:littleknown
9 Comments
 
LVL 2

Expert Comment

by:eric_123
ID: 22614609
HI,

First of all you need to check is there any firewall running on the server, (normally IPTABLES are used as firewall in linux servers) . To list the current rules in IPTABLES use iptables -L

if any unwanted rules found there remove the rules by iptables -F and save service iptables save

restart the service service iptables  restart

0
 
LVL 5

Expert Comment

by:valheru_m
ID: 22614682
What kinds of machines are you trying to ping from that linux box?  Are they all Windows machines?  Have you checked to see if the Windows boxen you are trying to ping have Windows Firewall turned on?  Windows firewall is on by default, so it's completely possible that all of the machines you are trying to ping are blocking your ping requests.

Other thing I would check (but not before you rule out some other stuff thats easier to troublehoot) is an ip address conflict for the ip addy that the linux box is using.
0
 
LVL 2

Author Comment

by:littleknown
ID: 22615717
Linux box has a static ip. Boxes being pinged from linux box are windows machines. None of them have windows firewall turned on. Some of them can't ping other ones but they're all on the internet
0
 
LVL 5

Expert Comment

by:valheru_m
ID: 22616398
Can the linux box ping your router/firewall?  Can the Windows machines?  Consider during this test that the firewall might not allow ICMP requests, so try to turn that rule off temporarily for the purposes of this test.

Also, out of curiosity, are you trying to ping via ip addy or name?
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 2

Author Comment

by:littleknown
ID: 22616455
Pinging via ip addy. All machines can ping the router fine.
0
 
LVL 5

Accepted Solution

by:
valheru_m earned 250 total points
ID: 22616855
ping the linux box from a windows box.  Then on that same windows box, go to the command prompt and run:

arp -a

This will display the ARP cache on the windows box, which should appear as a list of ip addresses corresponding to the associated mac address of the box that responded to the ping.  Verify that the mac address in the windows machine's ARP cache matches the mac address on the linux box's network interface (if the linux box has multiple network interfaces, it's the one with the ip address you're trying to ping from the windows box.) If they match, then it would appear as though the ip address is resolving correctly. If the values differ, then you have an ip address conflict on your network and the linux box isn't the box that's actually responding to the ping requests from the windows machine.

I want to try this because if it's not a windows firewall issue, short of your switch having some sort of filtering capability the only other thing I can think of that causes weirdness like this is an ip address conflict.
0
 
LVL 2

Author Comment

by:littleknown
ID: 22617675
Windows box can ping the linux box. Arp list showed the gateway and the ip of the linux box. Mac address matched it.

Linux box can't ping the windows box.
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 22620990
Could you post the following information on Windows machine:
> ipconfig /all
> route print

As well on the Linux machine
# ifconfig
# netstat -nr
# traceroute <Windows machine>

0
 
LVL 2

Author Comment

by:littleknown
ID: 22634550
problem has been resolved. reset winsock on the windows box and it worked, imagine that
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now