Windows – How to disable internet for a specific interface in Windows 7

network-adapternetworkingwindowswindows 7

I have two NICs on my machine, one which connects to my network and has my internet connection. The other connects to a buddy next doors network with his internet connection. I don't want Windows magically deciding which internet connection to use, I want it to use mine. I've had some success by blanking out DNS servers for his connection, but then I also lose hostname resolution on his network and I realize this doesn't solve everything 100%. How can I force Windows to use only my connection while avoiding the use of a router?

Best Answer

If you only need to reach a few computers, all of which are connected to the same router on the 2nd network then you could also configure it to use a static IP address with no gateway. Without a gateway you will only be able to communicate with devices on the same subnet and connected to the same router (ie: broadcast mode).

You can technically also do this under DHCP by deleting the 0.0.0.0 route for the interface using the ROUTE DELETE command line tool for editing routes, but you would need to do that every time your IP is renewed, so changing to a static ip address is much simpler. Just pick a static IP that is not in use and it should work just fine.

Related Question