View Full Version : XP routing
sss
27th November 2007, 11:17 AM
Ok.
I have on my network 2 gateways
192.168.2.10 -> local only gateway
192.168.2.3 -> internationa gateway
fantastic!
Now I have to setup my XP machine's routes, how the hell do i do that?
what do i type specifically?
RouteSentry will not work as routesentry looks for pppoe accounts on my pc, which there are obviosly none!
stoke
27th November 2007, 01:29 PM
On each machine running xp, you're gonna run the route command for all the local address ranges.
Create a batch file containing:
route add 196.36.19.0 mask 255.255.255.0 192.168.2.10 [TrenStar owned range]
route add 196.36.18.0 mask 255.255.255.0 192.168.2.10 [An IS owned range being rented out to somebody]
route add 196.43.2.0 mask 255.255.255.0 192.168.2.10 [The range the SAIX news server is on]
...
The list of local address ranges can be found with the routesentry software.
Use the mask to specify a range ... in the above example, the mask was used to basically say:
route requests to 196.36.19.* to gateway 192.168.2.10
You can make the mask wider if you want, like use 255.255.0.0, and get 196.36.*.*.
I have not actually used the winxp one, i use the linux one, which has a different way of notating ip-address ranges.
Somehwere in the routesenrty software is that list of ranges, i think it may already be in a batch file.
You will not specify an interface like routesentry does though, unless the pc has 2 nic's.
I don't know if wondoze supports a stored list of route "settings", linux does not, so you'll probablee have to run the batch file every time windoze starts, and after the dhcp'd ip address has been received. If you have an extremely advanced dhcp server, perhaps the dhcp server can set routing entries.
sss
27th November 2007, 01:44 PM
thanks, i shall experiment
course i also have to work out the "else" everything "else" get routed to int gateway
stoke
27th November 2007, 01:58 PM
well, the nic's default gateway should be the international gateway.
All requests not unspecified will go to the default gateway.
sss
27th November 2007, 02:49 PM
i was hoping so, time to test tonight
sss
27th November 2007, 02:51 PM
what im thinking now is in my int router(ddwrt) i can setup the route there so all machines on the network run as normal
stoke
27th November 2007, 03:16 PM
that would be better yups, but then it needs to be the default gateway, and if it's down, so is your network.
gus
27th November 2007, 03:45 PM
People on myadsl have posted complete route batch files in the past as far as I can remember. Do a search there.
TG
27th November 2007, 05:40 PM
Set your default gateway to the intl router, and specify routes for the local networks.
If you're up to it, you can write a script of some sort that pulls down the local netmasks from publicrouteserver.is.co.za (telnet to it).
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.