XP routing

bboy

Expert Member
Joined
Jan 21, 2005
Messages
3,237
Reaction score
6
ok

So i have two gateways on my network

192.168.1.1 and 192.168.1.2

Now how do I in XP write those little route commands to say, if traffic going to (41.x.x.x) then use gateway 192.168.1.2 and if traffic go (64.x.x.x) use gateway 192.168.1.2?
 
In the dos prompt type (replace x with your ip):

route add 41.x.x.0 mask 255.255.255.0 192.168.1.1 -p

and

route add 64.x.x.0 mask 255.255.255.0 192.168.1.2 -p

The "-p" makes it permanent, so if you restart it will stay there. You can change the mask 255.255.255.0 to what ever mask you want to use, Class A (255.0.0.0) , B (255.255.0.0) or C (255.255.255.0).

To delete the route:
route delete 41.x.x.x
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X