How to route different traffic thru different network interfaces (in Windows)

The command you're looking for is route add:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/route.mspx?mfr=true

For your setup, I think the syntax is:

route add 10.183.0.0 mask 255.255.0.0 10.183.148.5

This will send all the traffic for 10.183.x.x to the next hop address of 10.183.148.5 which your system already knows is off of your ethernet nic, and any traffic that doesn't match a route, will be grabbed by your default route and head through your 3g connection. It also looks like your network assigns multiple routers, so you might want to double it up and add the routes for 10.183.148.6 and .7 as well.

You might need to be careful if your network has stuff not in the 10.183 range, you may need to add more routes. You may also be able to get away with routing all of 10.0.0.0/8 to your corporate network, since windows will have a more specific route, but i'm not 100% sure on that since your 3g card is giving you an IP in the 10.x.x.x range.


An alternative way to do this is to change the 'Metric' value of each adapter in question. I have just done this with a 3G MiFi adapter. To change the Metric go into Network & Sharing Center --> Change Adapter Settings. Choose the adapter to change and go into its properties. In the advanced section of the protocol you want to change (normally IPv4) you untick the 'Automatic Metric' check box and specify your own value. The lower the value the higher priority the adapter will have when searching for a host.

This then doesnt' mess with your routing.


To make the 3g card the default gateway, remove the default route of the 11 interface :

route delete 0.0.0.0 10.57.175.79

assuming that 10.57.175.79 is your LAN ip address..

Then direct your 10.183.148.x subnet to your lan ip, :

route add 10.183.148.0 mask 255.255.255.0 10.57.175.79