LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-27-2003, 05:52 AM   #1
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Rep: Reputation: 0
Question Unable to ping my Linux box on windows network


Hi all,

I am using Redhat 7.1 Linux, I am new to linux, I have configured network setting on Linux machine with same the same Ip addressing scheme what I have winodws network . Now I am trying to ping linux machine with its name . it does not though it ping by its ip address. e.g I am sitting on win95 m/c giving
folowing command

Ping Linserver (here linserver is linux server name)

it gives error

ping 192.168.0.150 (ip address of Linserver)

ping reply well ...

I have tried making entry in hosts and lmhosts files on win95 but it did not help..

Any idea what could be wrong...

Rajjay
 
Old 07-27-2003, 06:12 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Can you post the output of this on linux:
ifconfig
route -n

And this on windows:
ipconfig /all
route

Also confirm that you have link lights on the network cards.
 
Old 07-27-2003, 07:24 AM   #3
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
You may have made a mistake on the MS 95 hosts file, try to reboot the 95 box. See if you are using a WINS server for naming, I think this system uses a centralised database of hostnames, I can't remember how it works!
 
Old 07-27-2003, 07:30 AM   #4
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
ifconfig gives

eth0 link encap :Eternet Hwaddr 00:00:f6:29:35:17
inet addr:192.168.0.150 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx Packets:121 errors:0 dropped:0 Overron:0 frame:1
Tx Packets:116 errors:0 dropped:0 Overrun:0 Carrier:0
Collisions:0 txqueuelen:100
Interrupt :10 Base address:0xdfe0

Io link encap:Local loopback
inet address:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packats:104 errors:0 dropped:0 frame:0
Tx Packets:104 errors:0 dropped:0 Overrun:0 Carrier:0
Collisions:0 txqueuelen:0


o/p of route -n is

Destination Gateway Genmask Flags Metrics Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 Io
0.0.0.0 192.168.0.2 0.0.0.0 UG 0 0 0 eth0


On Windows 2000

ipconfig /all


Windows 2000 IP Configuration



Host Name . . . . . . . . . . . . : mailserver
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid

IP Routing Enabled. . . . . . . . : Yes

WINS Proxy Enabled. . . . . . . . : No


Ethernet adapter WAN:



Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : CIS RTL8139 Family PCI Fast Ethernet NIC
Physical Address. . . . . . . . . : 00-01-0A-11-3D-35

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.1.2

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.1.1

DNS Servers . . . . . . . . . . . : 202.9.145.6
202.9.145.7
202.9.152.11

Ethernet adapter LAN:



Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139(A) PCI Fast Ethernet Adapter #2
Physical Address. . . . . . . . . : 00-E0-4C-E0-21-B1

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.0.2

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

DNS Servers . . . . . . . . . . . : 192.168.0.2
Primary WINS Server . . . . . . . : 162.130.130.2


here route in an incomplete command..
 
Old 07-27-2003, 07:34 AM   #5
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
My host file looks to be ok. I have tesetd by rebooting win95 but same no help, I am not using WINS here..Any other idea..
 
Old 07-27-2003, 07:46 AM   #6
BorgKiller
Member
 
Registered: Dec 2002
Location: Cyberspace, address block 212
Distribution: FreeBSD 6.1-RELEASE
Posts: 34

Rep: Reputation: 15
I ahve the same problem, except my Windows 2000 computer cant access the linux machine, but the linux can access the 2000 pro computer and use the windows 2000 internet connection.
 
Old 07-27-2003, 07:49 AM   #7
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
Just a suggestion, your Win2k server has a WINS server IP address entry on ethernet lan card, could it be that your 95 host is automatically searching this address for hostnames, it is a misconfiguration some where, you can ping address, so that just leaves the hostname files on either 2k or 95 or both are wrong!! I would add the Linux box and the 95 hostnames and addresses to /etc/hosts also.
 
Old 07-27-2003, 08:51 AM   #8
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
Also, if you have samba set up, are your linux and w2k machines arguing over which one is in control of translating names to IP addresses? If they both default to the same netbios resource types, this can cause you headaches.
 
Old 07-27-2003, 12:30 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Sorry - I think I miss understood you. Have you made sure that it is the right file you edited on windows 95:
C:\windows\hosts

Make sure that it is not the sample file of:
C:\windows\hosts.sam
 
Old 07-28-2003, 01:55 AM   #10
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
The new files host must be of some type like sam hosts.sam. What should be the extension of new file host.?

Can I save the same host.sam to hosts and do the reqd editing. Please give your suggestion.
 
Old 07-28-2003, 01:56 AM   #11
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
sorry it is hosts not host in abobe post
 
Old 07-28-2003, 02:04 AM   #12
kjsubbu
Member
 
Registered: Apr 2003
Location: india
Posts: 68

Rep: Reputation: 15
unable to ping

just u rename the host.sam to hosts. its enough to take this file


first u ping in ur local lin server 127.0.0.1 its pinging .
192.168.0.150 is working
 
Old 07-28-2003, 02:38 AM   #13
balaji2001com
Member
 
Registered: Jun 2003
Location: Chennai,India
Distribution: Almost all the flavours of linux
Posts: 39

Rep: Reputation: 15
can u give the contents of ur
/etc/resolv.conf
 
Old 07-28-2003, 02:48 AM   #14
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I hv renamed the hosts.sam to hosts
Now if I ping

Ping 192.168.0.150
ping with proper reply

if i ping with name
Ping linserver
Pinging linserver [192.168.0.150]
Destination host unreachable
Destination host unreachable
 
Old 07-28-2003, 02:49 AM   #15
rajjay
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I hv cheked pinging 127.0.0.1 and 192.168.0.150.
it pings well
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to ping my Linux box on windows network rajjay Linux - Networking 1 04-07-2009 11:16 AM
Unable to ping my linux host from windows box prabulinc Linux - Networking 2 08-27-2005 02:32 PM
Unable to ping Linux box Fritz_Monroe Linux - Newbie 3 05-19-2005 07:12 AM
Unable to ping Linux box from Windows westone Linux - Networking 5 07-14-2004 04:41 PM
can't ping linux box from windows - sorry, another one! stretchcomfort Linux - Networking 6 08-18-2003 05:24 PM


All times are GMT -5. The time now is 05:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration