LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-05-2008, 09:52 AM   #1
meetmefar
LQ Newbie
 
Registered: Aug 2005
Distribution: Linspire
Posts: 22

Rep: Reputation: 0
Pinging Linux Box from Windows


Hi Gurus,

I have recently installed enterprise Linux provided by Oracle (Redhat). I am trying to ping the box from my Windows box and I am getting request timeout error. Both the boxes are connected to the network using a router and firewall is disabled on the linux box. Both machines can connect to internet.

Any help is really appreciated.

Thank You,
meetmefar
 
Old 01-05-2008, 11:44 AM   #2
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello meetmefar

You don't say if you can ping the Linux (Redhat) box by ip address. If you can then it's a name resolution issue.

If it's a name resolution issue then I hesitate to offer my experience as with Redhat provided by Oracle you are probably looking for more than a homebrew solution.

However, on Fedora machines where I want that to be possible on a mixed Windows/Linux network all I have to do is install and run samba and edit my /etc/nsswitch.conf file so that the line that reads:

Code:
hosts:      files dns
now reads:

Code:
hosts:      files wins dns
It's important that the entry wins comes before any entry to do with dns or my machines try to resolve the local name on the internet. There may be other entries on that line in the file so I always keep 'wins' after the 'files' entry

This solution only applies as it stands to Fedora/CentOS and possibly Red Hat.

On other distributions it can be necessary to install other packages.

Some require 'wins_nss' and others 'winbind' before it will work.
 
Old 01-05-2008, 11:49 AM   #3
meetmefar
LQ Newbie
 
Registered: Aug 2005
Distribution: Linspire
Posts: 22

Original Poster
Rep: Reputation: 0
Hi bbfuller,

Thanks for the response. I am pinging by ipaddress and it returns the request timed out error.

Thanks,
meetmefar
 
Old 01-05-2008, 12:00 PM   #4
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello meetmefar

Can both machines ping the router and ping 212.58.251.202

That last is www.bbc.co.uk

Also you could use:

ifconfig

on the Linux box and check that it is getting an ip address in the same range as the windows machine. I assume that you are allocating ip addresses by dhcp?
 
Old 01-05-2008, 12:07 PM   #5
meetmefar
LQ Newbie
 
Registered: Aug 2005
Distribution: Linspire
Posts: 22

Original Poster
Rep: Reputation: 0
Hi bbfuller,

I can successfully ping 212.58.251.202. The ifconfig command shows the ip address of LINUX box as 192.168.15.100 and my Windows IP address is 192.168.1.66.

Yes, your'e right I am getting IP address automatically from DHCP.

Thanks,
meetmefar
 
Old 01-05-2008, 12:54 PM   #6
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello meetmefar

Is that the correct ip address you have given for the Linux box?

Normally, if you were receiving ip addresses by dhcp they would both be in the same range.

Either both would be 192.168.1.something or both 192.168.15.something.
 
Old 01-05-2008, 01:38 PM   #7
meetmefar
LQ Newbie
 
Registered: Aug 2005
Distribution: Linspire
Posts: 22

Original Poster
Rep: Reputation: 0
Hi bbfuller,

Thank You! Yes, that was a mistake from my part. The LINUX BOX IP is 192.168.1.65 and that of Windows is 192.168.1.66

Thanks,
meetmefar
 
Old 01-05-2008, 02:42 PM   #8
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello meetmefar

Although both machines can ping an ip address on the internet, you haven't said if they can each ping the router. I think we need to establish that next because depending on your answer, it's either the router blocking local pinging or one of the machines. I think we still need to determine which.

As that's Enterprise Red Hat/Oracle Linux, does it have SELinux on it and enabled? Worth temporarily disabling that if so and trying.
 
Old 01-06-2008, 04:41 PM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I'd say check for a local firewall on the Linux box..

iptables -L
 
Old 01-08-2008, 11:37 PM   #10
maooah
Member
 
Registered: Dec 2007
Posts: 44

Rep: Reputation: 15
hi all

i encounter the same scenario where i couldnot able to ping from windows to linux or vice versa, however i am in the same network ie linux 192.168.1.5 and windows also 192.168.1.35

your response will be appreciated

Regards
 
Old 01-08-2008, 11:47 PM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by maooah View Post
hi all

i encounter the same scenario where i couldnot able to ping from windows to linux or vice versa, however i am in the same network ie linux 192.168.1.5 and windows also 192.168.1.35

your response will be appreciated

Regards
Again it sounds like you have firewalls enabled on both PC's
 
Old 01-13-2008, 06:21 AM   #12
maooah
Member
 
Registered: Dec 2007
Posts: 44

Rep: Reputation: 15
dear farslayer

i didnot configure firewall settings for either linux or windows

waiting for your response
 
Old 01-13-2008, 09:37 PM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Both Windows and Linux may enable the firewall by default during install (RHEL does) did you verify they were off ? or are you assuming they are off because you didn't recall specifically configuring them ?

Code:
debianetch:~# 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
 
  


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
Pinging Windows from Linux Syathon Linux - Networking 1 06-14-2007 08:45 AM
Trouble pinging a linux box - resolves outside ip! TomalakBORG Linux - Networking 3 07-19-2006 11:10 AM
Linux box with eth0 to cable modem and eth1 to Windows box videojeff Linux - Networking 23 03-03-2005 07:58 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM
Problems networking Linux and Windows. Pinging does not work. ElijahLofgren Linux - Networking 29 02-11-2004 11:10 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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