Sunday, October 17, 2021

Manual Routing Metric Setting on Windows

https://serverfault.com/questions/238695/how-can-i-set-the-metric-of-a-manually-added-route-on-windows

I know this is late but I just ran into this today - I wanted to connect to gmail but it was blocked from the Domain LAN Web Filter. I brought in a wifi usb to get to the non-domain network and was able to get to gmail by changing the priority of the traffic. This still allowed me to access the domain network as well. To find out the interface #'s
Route Print
Use Netsh to set the lower value on the usb wifi device interface. The lower value means higher priority. This will remove the automatic setting as well.
netsh interface ipv4 set interface 25 metric=2
Use Route Print to verify If you make a mistake you can turn the interface back to automatic
netsh interface ipv4 set interface 25 metric=automatic
For more about netsh see http://www.colorconsole.de/cmd/en/Windows_Vista/netsh/interface/ipv4/set/interface.htm