I have two NICs on my desktop — an Ethernet interface and a WiFi interface. I have a VPN connection that allows me to connect to American servers which i use to access sites like Pandora. I can connect to my VPN account through the WiFi but not through the Ethernet as our internal network restricts it.

Is it possible to configure my network in a way that I'm always connected on both interfaces and the VPN is connected through the WiFi interface and all traffic from particular sites go through the VPN on the WiFi interface and the others simply use the Ethernet interface. I've been beating my head over this but haven't really found a solution.

I'm on a Windows 7 machine.


I suggest you learn about IPv4 subnetting and routing. That is the basis of what you are trying to do.

With two network interfaces which both have default gateways assigned, there will be two default routes ( which each have been assigned a metric. The metric is a value which determines a preference, or cost to using that route. In most cases, the WiFi interface will be assigned a higher metric (higher cost) than the wired interface, which means that the lower cost route -- the wired -- will be preferred.

(Once connected, the VPN virtual interface may also be assigned a metric.)

In the network interface settings you can manipulate the metric. By setting the WiFi with a lower metric than the wired, it will prefer to use that interface for the default gateway.

HOWEVER, you may find that this will break access to remote sites that must go over the wired interface, such as corporate Intranet sites. In this case, you will need to set manual routing table entries (using the route command) for those addresses that must go over a particular interface.

WARNING: Your company IT policies may prohibit or restrict the use of external Internet connections. If this is the case, please do not attempt to bypass their network security in this manner. Depending on your company's industry, it could cost you or your company fines, sanctions, or a loss of trust, business, or employment. It could open your company network to attack through your computer.

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.