LinuxQuestions.org
Help answer threads with 0 replies.
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 05-14-2003, 03:23 AM   #1
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Rep: Reputation: 15
Ping Linux > XP


I have the following setup:

XP machine on IP 192.168.0.4
ICS (on XP) on IP 192.168.0.1
Router on IP 192.168.0.101
Linux machine on IP 192.168.0.3
Linux Gateway on IP 192.168.0.1

Everything works - XP can see Linux, Linuc can see XP, Linux can access Internet via XP, Linux can print via XP.

The strange thing is that if I try to ping 192.168.0.4 from the Linux I get a Destination Host Unreachable message yet I have no problem pinging 192.168.0.1 from the Linux.

Can anyone explain this as I am a little confused?
 
Old 05-14-2003, 03:43 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Is "linux gateway" supposed to have the same IP as "ICS (on XP)?? Whats the output from ifconfig and route -n on your linux box?

cheers

Jamie...
 
Old 05-14-2003, 06:30 AM   #3
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Yes - the Linux gateway needs the same address as ICS as it is being "passed through" the XP machine.
 
Old 05-14-2003, 07:04 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Can you explain a little further, I've never known a setup were you can have non-unique IP addresses unless you are manipulating ARP on the lan to control which machine gets the packets. How about the requested output from ifconfig and route -n?

cheers

Jamie...
 
Old 05-14-2003, 07:37 AM   #5
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
This is what I was advised to do AND IT WORKS. Perhaps there is another way - if so please let me know and I will try it!

ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 00:30:BD:1F:AE:0E
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4637343 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3202308 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2328130018 (2220.2 Mb)  TX bytes:292761906 (279.1 Mb)
          Interrupt:5 Base address:0x3000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:897 errors:0 dropped:0 overruns:0 frame:0
          TX packets:897 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:112625 (109.9 Kb)  TX bytes:112625 (109.9 Kb)
route -n:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric 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 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
 
Old 05-14-2003, 08:08 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by david63
AND IT WORKS.
If clearly doesn't as you're having these problems! What exactly are you trying to accomplish? And what is the "ICS" bit on the XP box? As you have two machines with the same address you can't be sure which device would answer your ping even if it got there. The message of "Destination Host Unreachable" normally indicates that you don't have a route to that host for some reason. When you say
Quote:
The strange thing is that if I try to ping 192.168.0.4 from the Linux I get a Destination Host Unreachable message yet I have no problem pinging 192.168.0.3 from the Linux.
Do you mean you are on machine 192.168.0.1 (linux machine as you called it) or are you on 192.168.0.3 (linux gateway).

From the box in question what does traceroute 192.168.0.1 tell you?

cheers

Jamie...

Last edited by jharris; 05-14-2003 at 08:09 AM.
 
Old 05-14-2003, 05:02 PM   #7
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry I have been so long replying - had to go to an AGM!

ICS on the XP is Internet Connection Sharing

The output from traceroute is:
Code:
traceroute to 192.168.0.1 (192.168.0.1), 30 hops max, 38 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
When I am on the Linux (192.168.0.3) I cannot ping the XP (192.168.0.4) but I can ping the Linux (192.168.0.3) from the XP (192.168.0.4) - if that makes sense.

As I say everything works as I would expect - I am just curious as to why pinging the XP from Linux does not work but the Linux is clearly talking to the XP.

Last edited by david63; 05-14-2003 at 05:03 PM.
 
Old 05-14-2003, 05:06 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Do you mean that you have one linux box and one xp box and that the gateway ON the linux box is set to 192.168.0.1?
 
Old 05-14-2003, 05:09 PM   #9
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Yes as is ICS on the XP (this a default that cannot be changed)
 
Old 05-14-2003, 05:10 PM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
On your XP box, is the built in firewall set to block the Linux box? or pings from outside?
 
Old 05-14-2003, 05:14 PM   #11
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
I do not use the built in firewall - I have another one. I have disabled it and I still cannot ping the XP
 
Old 05-14-2003, 05:22 PM   #12
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I wonder if it's because both gateways have the same address..... could you run ipconfig /all on your XP box - we'll be able to compare the 2 outputs. In the meantime, could you assign one of your gateways a new, unique address and let us know if that helps.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
LInux can ping other PC but others cannot Ping Linux Box wayldfayr Linux - Networking 8 10-17-2005 12:20 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 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
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

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

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