Link to home
Start Free TrialLog in
Avatar of littleknown
littleknown

asked on

Linux machine cannot ping windows machine on the same network

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
Avatar of eric_123
eric_123

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

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.
Avatar of littleknown

ASKER

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
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?
Pinging via ip addy. All machines can ping the router fine.
ASKER CERTIFIED SOLUTION
Avatar of valheru_m
valheru_m
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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>

problem has been resolved. reset winsock on the windows box and it worked, imagine that