Question : Windows Routing Table Configuration

I'm not really a network guy so I have a very simple question about how to add the route I want to my local Windows Server 2003 routing table.

Let's say I have a machine with 2 NICs.  NIC1 is on our corporate LAN.  NIC2 is  attached to a backdoor DSL connection for vendor access.  I want all traffic going to other corporate VLANs to go out the NIC1, obviously, so I want to add a static route to ensure this happens.

NIC1
IP addr: 10.100.25.20/24
Default GW: 10.100.25.1


All other corp VLANs are 10.x.x.x

NIC2
IP addr: 192.168.200.24/24
Default GW: 192.168.200.1


Is the following correct?

route add -p 10.0.0.0 mask 255.0.0.0 10.100.25.20 metric 1

or should it be:

route add -p 10.0.0.0 mask 255.0.0.0 10.100.25.1 metric 1

Do both work?  (I would think so.)  Does neither make sense?  I'm just not sure if you can generalize like that ("for everything that starts with 10, go here").

Also, what is the route to destination 255.255.255.255 for?

Answer : Windows Routing Table Configuration

route add -p 10.0.0.0 mask 255.0.0.0 10.100.25.1 metric 1

It needs to go out via the gateway, your gateway is .1

http://support.microsoft.com/kb/140859

The mask of all 255s (all 1s) means that the destination address of the packet to be routed must exactly match the Network Address for this route to be used.  It has no mask.
Random Solutions  
 
programming4us programming4us