LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why Can't I Ping Linux Server from Windows (https://www.linuxquestions.org/questions/linux-newbie-8/why-cant-i-ping-linux-server-from-windows-696954/)

jenniekingsland 01-13-2009 05:04 AM

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

junpa 01-13-2009 05:17 AM

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

your_shadow03 01-13-2009 05:32 AM

You can definitely ping the Windows machine from Linux and vice versa.
Sometimes due to firewall you are not able to do so.

farslayer 01-13-2009 07:35 AM

Check the firewall settings on the Linux servers to start with..

iptables -L

onebuck 01-13-2009 08:11 AM

Hi,
Quote:

Originally Posted by jenniekingsland (Post 3406878)
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!

jenniekingsland 01-14-2009 03:35 AM

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

farslayer 01-14-2009 07:16 AM

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 ?


All times are GMT -5. The time now is 02:39 PM.