Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to route between two networks, both connected to my computer. Current situation:

card #1: IP: Gateway:

card #2: IP: Gateway:

System is Windows XP SP3

Connected to card #1 is the network of my office, card #2 connects me to a small ADSL router. My aim is to route all requests to the office network (all IPs in over card #1 and all other traffic (internet) over card #2 to the ADSL router. Both networks provide DHCP and DNS.

Which rules do I have to add for this to work? I already tried it in my own, but my understanding of this is way too low.

Thank you in advance,


share|improve this question
up vote 1 down vote accepted

route add mask -p should route all traffic to the adsl router

route add mask -p should then route all traffic destined for your work

You could also just specify an address manually on the work connection without a gateway, which will make all internet traffic go out of the other interface.

share|improve this answer
Thank you, but I think the range for the office-network is wrong, as it is the entire range AND why did yout put as gateway? I think it should be, or am I wrong? So it should be: route add MASK -p Please correct my if I am wrong :) – ThE_-_BliZZarD Aug 13 '10 at 14:10
I think you need to modify that a little. Only the subnet is meant for private networks. In other words, your above routing would cut off from a fair portion of Internet addresses. Use route add mask gw – wolfgangsz Aug 13 '10 at 14:42
Because you are using the nic interface as the gateway. – DanBig Aug 13 '10 at 14:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.