OS: Windows Server 2012 R2 Standard

Server has 2 network adapters. Each is connected to WAN with different ISP.

There is offsite location with static IP (ex. How can I force all traffic to go thru specific network adapter?

ForceBindIP is not usable in this scenario.


See this answer from the helpful user Lentilbean, on the first page of Google when directly querying your title:

This is decided by the routing table on your computer. Open a command prompt and run "route print" to see what it looks like. The interface that has assigned to it will be the one used for internet access. If there are more than one with then the one with the lowest metric will be used. One way to force internet traffic to go through a certain interface is to add a route with a low metric for to this interface.

Run "route print". Look at the Interface List and remember the number of the interface you want to create a route for.

Run "route delete if ". This is because you cannot have two entries for the same route on the same interface.

Run "route -p add mask metric 1 if ". The -p switch makes it permanent. Metric 1 will give it the lowes cost, hence it will be the preferred entry to use for requests to addresses not specified in the routing table.

Btw, having default gateways on more than one interface is generally not a good idea.

See the full thread here: https://social.technet.microsoft.com/Forums/windows/en-US/64451b61-b8d6-4e16-a396-ea418753f1c6/force-internet-connection-to-desired-network-adapter

I suggest researching questions such as this prior to asking.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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