PDA

View Full Version : school me in windows routing



FoBoT
09-13-2003, 12:53 AM
routing is my weak area

if i have some XP, windows 2000 server and windows server 2003 boxen, dual home, ie two NICs

how do i determine which one gets used for what?

can i direct all traffic through one interface, except for say, a certain small ip range or a few domains?

PCZ
09-13-2003, 05:35 AM
FoBot
Be a little more specific.

Normally all those machines would plug into a hub/switch and have a gateway set on one interface only.

Are they set up dual homed because they have private and public interfaces.
Web servers with a private interface talking to an SQL server for example.

You can easily add routes to a windows server.
here is an example:

route add 10.16.16.0 MASK 255.255.255.0 10.16.16.250 -p

route add destination mask next hop -p to make it permanent

The server will automaticaly use the interface on the next hop network.

So you set up a gateway as normal on the interface carrying the majority of the traffic. This is refered to as the defult gateway.
For certain IP ranges that you want sent via another interface you use the route command.