LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2009, 05:04 AM   #1
jenniekingsland
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 0
Why Can't I Ping Linux Server from Windows


Hi

I am new to Linux and we have just recently got some Linux servers.

Why is that I cannot ping the linux server from windows using the command prompt? I can connect to it through Putty and when connected through putty I can ping the Linux server itself fine but I want to be able to ping it through Windows using cmd.

Do we need to set something up on the network side?

Thank you
 
Old 01-13-2009, 05:17 AM   #2
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 51

Rep: Reputation: 16
what do you mean by can't ping?

does it hang?

do you get a icmp destination unreachable?

what's the output when you try to ping?

For future reference please read:

How to Ask Questions The Smart Way
 
Old 01-13-2009, 05:32 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
You can definitely ping the Windows machine from Linux and vice versa.
Sometimes due to firewall you are not able to do so.
 
Old 01-13-2009, 07:35 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Check the firewall settings on the Linux servers to start with..

iptables -L
 
Old 01-13-2009, 08:11 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by jenniekingsland View Post
Hi

I am new to Linux and we have just recently got some Linux servers.

Why is that I cannot ping the linux server from windows using the command prompt? I can connect to it through Putty and when connected through putty I can ping the Linux server itself fine but I want to be able to ping it through Windows using cmd.

Do we need to set something up on the network side?

Thank you
How are you pinging from the 'windows' machine, name or physical address? Do you have the lmhost file setup on the 'M$' machine? Do you have the ''/etc/hosts' files setup on the Linux side?

Look at 'LQ Networking' to aid you in setups.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 01-14-2009, 03:35 AM   #6
jenniekingsland
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 0
Hi

I pinged using IP and I got this:

ping 172.18.10.194

Pinging 172.18.10.194 with 32 bytes of data

Request timed out.

I also did the following;

[root@snenmgmt ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

[root@snenmgmt ~]# lsmod |grep ip
iptable_filter 6977 0
ip_tables 22721 1 iptable_filter
ipv6 243553 26

I then did this [root@snenmgmt ~]# service iptables status
Firewall is stopped. So does that mean it cannot be the firewall causing the issue?

Is this correct as I do not know if it is right? I am trying to find out what the above command means and if my setup is right but when searching on the net it just tells you how to configure it? What do the results of lsmod and iptables - L mean?

What do you mean by 'Do you have the lmhost file setup on the 'M$' machine' how do I do this and what is it?

I checked the /etc/hosts file and it has this in;

127.0.0.1 localhost.localdomain localhost
172.17.10.194 snenmgmt.np-101.gov.uk snenmgmt

I think this is correct as its the same as the main site Linux server

Many thanks

Last edited by jenniekingsland; 01-14-2009 at 03:42 AM. Reason: wrong info was stated
 
Old 01-14-2009, 07:16 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Your Linux box does not have an active firewall.. iptables -L basically means show me a list of the firewall rule tables. since all three tables have a policy of ACCEPT they are not blocking any traffic. man iptables

lsmod is a command that means List Modules, it will show you what modules are loaded on your system. man lsmod

You should not have to set anything up special in order to PING the Linux box from windows. so the question is why is it not responding to a simple request such as ping ?

are both the Windows PC and the Linux PC on the same network segment ? no routers or firewalls in between ?

could you post ipconfig /all for one of the windows machines and ifconfig -a for one of the Linux machines ?
 
  


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
how do I ping windows pc's by name with windows dc as dns server? jmille34 Linux - Networking 1 12-01-2006 11:28 AM
Help me please...Cannot ping from windows to linux r_balest Linux - Networking 11 11-19-2006 07:35 PM
Windows Xp static IP in VMware Server; cannot ping google.com fakie_flip Linux - Networking 2 09-18-2006 12:09 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Linux machines cant ping server..Windows can. NetAX Linux - Networking 1 05-21-2004 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 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