routing problem

C

cyborg

Hi All,
details of my network:
========================
WindowsXP:
first NIC(wireless) ->192.168.0.9 (static)
second NIC ->192.168.1.5 (static)
IPEnableRouter = 1 (yes)
(not using bridge)

Linux:
IP 192.168.1.3

Windows2k:
IP 192.168.0.102 (from DHCP from wireless router)

connections:
======================================
Windows2k -> wireless router-> WindowsXP <- Linux
========================================
problem:
I can ping from Win2k to WindowsXP both NICs, but I can't to Linux.
I can ping from WindowsXP to Linux, so I thought if I add route
192.168.1.0 through 192.168.0.9 Gateway on XP it would work. But NOT.
I don't get it why.

Here is Windows 2k route map:
===========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.102 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.102 192.168.0.102 1
192.168.0.102 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.102 192.168.0.102 1
192.168.1.0 255.255.255.0 192.168.0.9 192.168.0.102 1
224.0.0.0 224.0.0.0 192.168.0.102 192.168.0.102 1
255.255.255.255 255.255.255.255 192.168.0.102 192.168.0.102 1
Default Gateway: 192.168.0.1
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
192.168.1.0 255.255.255.0 192.168.0.9 1


and here WindowsXP route map:
============================
Active Routes:
Network Destination Netmask Gateway Interface Metric
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.9 192.168.0.9 4
192.168.0.9 255.255.255.255 127.0.0.1 127.0.0.1 4
192.168.0.255 255.255.255.255 192.168.0.9 192.168.0.9 4
192.168.1.0 255.255.255.0 192.168.1.5 192.168.1.5 2
192.168.1.5 255.255.255.255 127.0.0.1 127.0.0.1 2
192.168.1.255 255.255.255.255 192.168.1.5 192.168.1.5 2
224.0.0.0 240.0.0.0 192.168.0.9 192.168.0.9 4
224.0.0.0 240.0.0.0 192.168.1.5 192.168.1.5 2
255.255.255.255 255.255.255.255 192.168.0.9 192.168.0.9 1
255.255.255.255 255.255.255.255 192.168.1.5 192.168.1.5 1
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
192.168.1.0 255.255.255.0 192.168.1.5 2

any ideas?
thanks
 
S

Steve Winograd [MVP]

"cyborg" said:
Hi All,
details of my network:
========================
WindowsXP:
first NIC(wireless) ->192.168.0.9 (static)
second NIC ->192.168.1.5 (static)
IPEnableRouter = 1 (yes)
(not using bridge)

Linux:
IP 192.168.1.3

Windows2k:
IP 192.168.0.102 (from DHCP from wireless router)

connections:
======================================
Windows2k -> wireless router-> WindowsXP <- Linux
========================================
problem:
I can ping from Win2k to WindowsXP both NICs, but I can't to Linux.
I can ping from WindowsXP to Linux, so I thought if I add route
192.168.1.0 through 192.168.0.9 Gateway on XP it would work. But NOT.
I don't get it why.

Here is Windows 2k route map:
===========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.102 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.102 192.168.0.102 1
192.168.0.102 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.102 192.168.0.102 1
192.168.1.0 255.255.255.0 192.168.0.9 192.168.0.102 1
224.0.0.0 224.0.0.0 192.168.0.102 192.168.0.102 1
255.255.255.255 255.255.255.255 192.168.0.102 192.168.0.102 1
Default Gateway: 192.168.0.1
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
192.168.1.0 255.255.255.0 192.168.0.9 1


and here WindowsXP route map:
============================
Active Routes:
Network Destination Netmask Gateway Interface Metric
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.9 192.168.0.9 4
192.168.0.9 255.255.255.255 127.0.0.1 127.0.0.1 4
192.168.0.255 255.255.255.255 192.168.0.9 192.168.0.9 4
192.168.1.0 255.255.255.0 192.168.1.5 192.168.1.5 2
192.168.1.5 255.255.255.255 127.0.0.1 127.0.0.1 2
192.168.1.255 255.255.255.255 192.168.1.5 192.168.1.5 2
224.0.0.0 240.0.0.0 192.168.0.9 192.168.0.9 4
224.0.0.0 240.0.0.0 192.168.1.5 192.168.1.5 2
255.255.255.255 255.255.255.255 192.168.0.9 192.168.0.9 1
255.255.255.255 255.255.255.255 192.168.1.5 192.168.1.5 1
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
192.168.1.0 255.255.255.0 192.168.1.5 2

any ideas?
thanks

There should be no need for you to add a route to Windows XP. Since
it has a NIC in each network, it knows how to reach each network.

Pinging is a two-way communication: each computer (the source and the
destination) needs a route to the other one.

When you ping Linux (192.168.1.3) from Win2K (192.168.0.102), Win2K
looks in its route table for a route to 192.168.1.x. It doesn't find
one, so it sends the packets to the default gateway, which is the
WinXP computer (192.168.0.1). XP, which has routes to both networks
and has IP forwarding enabled, sends the packets to Linux.

My guess is that Linux doesn't have a default gateway pointing back to
WinXP. Without that, it doesn't know how to send packets to
192.168.0.102, so it drops them. It's also possible that a firewall
on Linux is blocking access.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
C

cyborg

(sorry Steve, I sent you email by mistake)

Thats what I suspected, but I can ping to both NICs on WinXP from LINUX,
but cannot ping 192.168.0.102 on Windows2k, which is weird if I can ping
192.168.0.9 (1st NIC on XP)
this is the same network, and from XP is no problem.

here is the LINUX routing table
=============================
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.0 192.168.1.5 255.255.255.255 UGH 0 0 0 eth0
192.168.1.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 0.0.0.0 0.0.0.0 U 0 0 0 eth0


thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top