connecting to 2 routers with one pc

rampanthorse

Commendable
May 22, 2016
1
0
1,510
I have a windows 10 pc currently connected with lan cable to a router for internet access.
i would like to add another router which would have vpn configured on it to give me a uk address, (i want this so that i can connect other divices via wifi to either router)
the theory is that i plug my lan cable into the vpn router and then the vpn router connects to the internet access router.
this is ok but it would mean that i am going via vpn all the time (using up my limited vpn usage). So my question is if i leave my lan cable in the internet access router for straight forward internet use, can i then fit another lan card and connect that to the vpn router. and then would it just be a case of on the pc in networking disable whichever card i dont want to use and enable the one i do want to use? or could i fit a wifi adaptor in the pc and do disable/enable between those 2?
and if all this is possible is there a simpler way to switch between the 2 other than going into network settings everytime (some sort of shortcut)
i tried to add a picture from my pc but i cant see how to do it.
Barry
 
Solution
You are better off using the ROUTE command to switch rather than messing with the settings. If you were to hook up 2 ethernets..make sure the subnets are different... you would see two 0.0.0.0 routes when you do a ROUTE PRINT commnad. On the far right of the display there is a metric. The lower the metric is the preferred one. Not exactly sure how windows set this value by default but one of the 2 ethernet nics will be lower.

So you have 2 way to mess with this. You can just out right use a ROUTE DELETE and remove the one you do not want and then use a ROUTE ADD to put it back later. Or you can actually change the metrics to cause it to switch.

Now if you are really ambitious you can use this method to use both at the same...
You are better off using the ROUTE command to switch rather than messing with the settings. If you were to hook up 2 ethernets..make sure the subnets are different... you would see two 0.0.0.0 routes when you do a ROUTE PRINT commnad. On the far right of the display there is a metric. The lower the metric is the preferred one. Not exactly sure how windows set this value by default but one of the 2 ethernet nics will be lower.

So you have 2 way to mess with this. You can just out right use a ROUTE DELETE and remove the one you do not want and then use a ROUTE ADD to put it back later. Or you can actually change the metrics to cause it to switch.

Now if you are really ambitious you can use this method to use both at the same time. It tends to be rather tedious but what you do is leave the 0.0.0.0 for the one you want to use as your default and delete the other 0.0.0.0 route. Now for each ip that you want to use the secondary connection you would use a ROUTE ADD for that IP with a 255.255.255.255 mask and point it to the secondary router. The huge challenge is getting the list of ip addresses for all the site you want to use the secondary connection. If it is say 10 or so it will be easy, a couple hundred you will need to write bat files.
 
Solution