Make XP Route

mswarbrick
mswarbrick used Ask the Experts™
on
I want to use XP as a router to route traffic from network 192.168.0.0 to network 192.168.20.0

I have 3 PCs we will call....SOURCE-PC, ROUTER-PC, DESTINATION-PC.
All PCs are physically wired though the same switch. In other words, physically on same network, but two different subnets running on this wire.

On ROUTER-PC, I have it set as follows...
I have set IPEnableRouter to 1 in the registry and rebooted.
I have two NIC cards on it set static as:
192.168.0.254
192.168.20.7
I have set route on this PC with this command:
route add 192.168.20.0 mask 255.255.255.0 192.168.0.254

SOURCE PC: I have it on the 192.168.0.0 network I have given it a default gateway of 192.168.0.254

TARGET PC. It has an address of 192.168.20.50

From SOURCE-PC, I try to ping 192.168.20.50  It fails, and that is my problem. My XP router is not routing traffic to the 20.0 network even though I have followed all the instructions that everyone says will make it work. I can ping 0.254 and I can ping 20.7, but I cannot ping the DESTINATION-PC.  And Yes, all software firewalls are off. Tracert shows the traffic dies at the ROUTER-PC and isn't passed beyond the ROUTER-PC.

Please Help!!  I have been trying for weeks to make this work. Thanks in advance.

Mark
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kerem ERSOYPresident

Commented:
Hi,

You don't need a route over your router. Since it already has an interface attached to your system and all you do is to add a DG in the 20 network if this is wnhat you need.

The real problem here is normally XP disables routing between interfaces. So this is normal that your PC's can't ping targets located in the 20 network. You need to enable routing on XP first.  Here's how:

http://www.wikihow.com/Enable-Windows-XP-Routing

Cheers,
K.
leakim971Multitechnician
Top Expert 2014

Commented:
Hello mswarbrick,

You need to use the relay function of the router (page 72) : http://www.draytek.co.uk/support/userguides/Vigor2820%20User%20Guide%20V3.0.zip

<<
If you want to use another DHCP server in the network other than
the Vigor Routers, you can let Relay Agent help you to redirect the
DHCP request to the specified location.
>>

Regards.

Author

Commented:
To KaremE - You apparently didn't notice in my post that I have enabled routing in the registry already. And what is a DG?

To LeakIM71 - Why are you sending me info on a Vigor router and info on a relay agent and DHCP? I am not even using DHCP and what has that got to do with routing? I don't want to buy a Vigor outer, I want to make the xp box route.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

leakim971Multitechnician
Top Expert 2014

Commented:
lol oups bad thread, sorry...
President
Commented:
Ok yeah I've missed it. Don't blame me all the information is organized rather poorly : ) and I needed to examine the initial posting for several minutes to locate you told you've enabled it.

another problem is how will PC's in the 20 subnet know how to respond back ?? So you need to add a route to 20.50 to let it know that they can reach 0 subnet through 20.7:

route -p add 192.168.0.0 mask 255.255.255.0 192.168.20.7

If you don't when 20.50 gets the icmp packet it will send the response to its Default gateway. Not the router. This route corrects it.

-p makes the route permanent and it will stay there after a reboot.

Cheers,
K.



Kerem ERSOYPresident

Commented:
@leakim971: ok at least we know how to relay DHCP. Thanks :)

Author

Commented:
You Sir, are a GENIUS!  Thanks so much!  It worked perfectly after putting in the return route. I never thought about the ICMP packets not being able to return the ping because of no route back. You have made my day!
leakim971Multitechnician
Top Expert 2014

Commented:
lol
Kerem ERSOYPresident

Commented:
You're welcome :) Thanks.

 Now you have 2 options:

- Add the return route to all pcs in 20 subnet manually.
- Add the return route to their default gateway so that when a system in 20 subnet wants to respond to 0 subnet it will send the packet to its default gateway and the default gateway will forward the packet to 20.7. (This is similar to the case with 0 network you did not need to add extra routing becasue routing was handled by their default gateway.

The latter method has an advantage so that it would not require extra route line for each system that will communicate with 0 subnet.

Cheers,
K.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial