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,


1 Answer 1


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.

  • Thank you, but I think the range for the office-network is wrong, as it is the entire 172.xxx.yyy.zzz 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 :) Aug 13, 2010 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, 2010 at 14:42
  • Because you are using the nic interface as the gateway.
    – DanBig
    Aug 13, 2010 at 14:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .