LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2010, 09:03 AM   #1
mselaledi
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 0
Question Ping Windows machine from Linux


I am interested in testing if two computers can communicate with each other.
Infrastructure: Computer A - Windows Machine
Computer B - Linux Machine

I am able to successfully ping B from A, but cannot do the same visa versa.
Both A and B are on the same network with the same Netmask of 255.255.255.0

Please provide me with suggestions.
 
Old 09-30-2010, 09:13 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
In all probability, the linux computer's firewall is configured to drop ping packets. Check your firewall settings on the linux box.
 
Old 10-01-2010, 07:48 AM   #3
mselaledi
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Arrow

I have checked the firewall settings, and still no results.
 
Old 10-01-2010, 01:49 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Post your distro and what tools you are using to check your firewall configuration. Also, post exactly what commands you are running on your windows box to ping your linux box and what output you get when you run those commands. Finally, open a console on your linux box and run either:

$ sudo ifconfig

or if you have a root account:

$ su
<enter root password>
# ifconfig


and post the output here.

Last edited by kilgoretrout; 10-01-2010 at 06:12 PM.
 
Old 10-02-2010, 09:22 AM   #5
mselaledi
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Original Poster
Rep: Reputation: 0
The problem does not lie when pinging from Windows, but from pinging from Linux.
 
Old 10-02-2010, 10:58 AM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
Computer A - Windows Machine
Computer B - Linux Machine

I am able to successfully ping B from A, but cannot do the same visa versa.
I'm going to have to read these posts more carefully. Sorry about that.

OK. Reverse the steps then. First check your windows firewall(most likely source of problem). Turn it off and see if you can ping the windows box from linux. If you can, the problem is with the windows firewall configuration. If that doesn't help, open a dos prompt in windows and run:

ipconfig

and post the output here. Post the command you run on the linux box to ping windows and the output.

Last edited by kilgoretrout; 10-02-2010 at 11:00 AM.
 
Old 10-02-2010, 01:10 PM   #7
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Kilgoretrout is correct: newer versions of Windows (Vista, Server 2008 and Windows 7) all disallow "ping" by default. Here's one way to re-enable ping:

Quote:
http://www.howtonetworking.com/vista/enablieping.htm

By design, Vista doesn’t allow any ICMP pass though the firewall and you can’t ping it. However, you may have two options.

A. You can create inbound rule for ICMP using Windows Firewall with Advanced Security. To do this, please follow these steps.

1) Open Administrative Tools from Control Panel.

2) Double-click Windows Firewall with Advanced Security.

3) Double-click Inbound Rules.

4) You may find File and Printer Sharing (Echo – ICMPv#-In). The # can 4 for IPv4 and 6 for IPv6.

5) Decide which one you want to enable and highlight, then click Enable Rule.

B. Whenever the exception for File and Printer Sharing is enabled, Windows Firewall automatically enable ping.
PS:
Kilgoretrout - love the hommage to Kurt Vonnegut!

Excuse me while I steal a mirror
 
Old 10-02-2010, 11:02 PM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Try typing this in a terminal, OP:

Code:
sudo ping -f www.microsoft.com
 
Old 10-03-2010, 03:09 PM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
mselaledi -
Quote:
The problem does not lie when pinging from Windows, but from pinging from Linux.
You are absolutely correct. And the problem is *caused* by Windows (specifically, the default firewall/network configuration of Windows Vista and higher).

Please read my earlier post and let us know what happens!

Thank you .. PSM
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 12:33 AM
(Mepis) Windows machine cannot ping linux machine by IP mabtjie Linux - Networking 1 11-08-2008 09:54 AM
Can't ping Linux box from Windows machine, and other networking oddities on Mandriva Adinsx88 Linux - Networking 2 05-10-2006 06:09 PM
Can't ping linux machine from windows Drunkalot Linux - General 1 10-14-2005 08:53 AM
Netbios (cannot ping windows box using machine name) murray_linux Linux - Networking 2 02-02-2004 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration