Thursday, October 18, 2012

Multiple gateway in Windows

Ahoy! Been busy this past months and here I am again.

In this topic I experienced a problem where I have 2 NIC connected to different routers. One is I use for internet browsing (NIC1) and the other is for file sharing and other stuff (NIC2).

Now I need to use VPN to connect to NIC2 but the default gateway is on NIC1.Below is the current configuration...

NIC1 (default gateway)
IP = 192.168.10.50
Gateway = 192.168..10.1

NIC2
IP = 192.168.20.50
Gateway = 192.168..20.1

IP to connect from outside NIC2
192.168.1.20

Then from what I read from Microsoft Support it said that I need to add a static route to be able to route IP datagrams (whatever that is) to my specified destination.

To do that open command prompt and type...
route add 192.168.1.0 mask 255.255.255.0 192.168.20.1

where: ROUTE ADD destination subnet MASK subnet mask my gateway

then try to ping to the IP that you want and it should respond. If it works then VPN and other application you wish to use can connect to that destination.


Happy tweaking!!!