[windows] Setting network adapter metric priority in Windows 7

I'm having an issue on Windows 7 - if I have my Ethernet cable plugged in, Windows will default to using my WiFi network adapter. I would prefer that Windows default to my Ethernet connection. In order to resolve this, I have to manually disconnect the WiFi adapter in Control Panel's "Networking and Sharing Center", and then it will recognize my Ethernet connection.

Another weird thing is when I look at Control Panel\Network and Internet\Network Connections, my "TAP-Win32 Adapter OAS" is always disconnected. My Ethernet adapter is only noticed when I have it plugged in; and only then it shows up as a new adapter called "Realtek PCIe GBE Family Controller".

Note: Sorry I can't show screen captures because I'm one reputation point away from being able to show images.

I followed the steps in the articles How to Change the Priority of Wired/Wireless Network Cards in Windows and An explanation of the Automatic Metric feature for Internet Protocol routes

Here are my current metrics (network adapter priority):

C:\Users\Michael> netstat -rn    
===========================================================================
Interface List
10...1c c1 de 98 1b 88 ......Realtek PCIe GBE Family Controller
16...00 ff fa d7 9e 94 ......TAP-Win32 Adapter OAS
13...00 26 82 c8 41 a7 ......Broadcom 43224AG 802.11a/b/g/draft-n Wi-Fi Adapter
12...70 f3 95 79 4f ec ......Bluetooth Device (Personal Area Network)
24...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
 1...........................Software Loopback Interface 1
18...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
21...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
22...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
14...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
17...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
20...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination  Netmask           Gateway     Interface     Metric
0.0.0.0              0.0.0.0           192.168.1.1 192.168.1.103     28
0.0.0.0              0.0.0.0           192.168.1.1 192.168.1.101     24
127.0.0.0            255.0.0.0         On-link         127.0.0.1    306
127.0.0.1            255.255.255.255   On-link         127.0.0.1    306
127.255.255.255      255.255.255.255   On-link         127.0.0.1    306
192.168.1.0          255.255.255.0     On-link     192.168.1.103    270
192.168.1.0          255.255.255.0     On-link     192.168.1.101    268
192.168.1.101        255.255.255.255   On-link     192.168.1.101    268
192.168.1.103        255.255.255.255   On-link     192.168.1.103    270
192.168.1.255        255.255.255.255   On-link     192.168.1.103    270
192.168.1.255        255.255.255.255   On-link     192.168.1.101    268
192.168.116.0        255.255.255.0     On-link     192.168.116.1    276
192.168.116.1        255.255.255.255   On-link     192.168.116.1    276
192.168.116.255      255.255.255.255   On-link     192.168.116.1    276
224.0.0.0            240.0.0.0         On-link         127.0.0.1    306
224.0.0.0            240.0.0.0         On-link     192.168.1.101    268
224.0.0.0            240.0.0.0         On-link     192.168.116.1    276
224.0.0.0            240.0.0.0         On-link     192.168.1.103    270
255.255.255.255      255.255.255.255   On-link         127.0.0.1    306
255.255.255.255      255.255.255.255   On-link     192.168.1.101    268
255.255.255.255      255.255.255.255   On-link     192.168.116.1    276
255.255.255.255      255.255.255.255   On-link     192.168.1.103    270
===========================================================================

Although the "Realtek PCIe GBE Family Controller" has the higher priority metric, Windows still uses the WiFi connection by default. So to be explicit, I followed the instructions from the article; I unchecked the "automatic metric" assignment, and set it manually; only for the following adapters (on TCP/IPv4):

  • 10: TAP-Win32 Adapter OAS
  • 12: Realtek PCIe GBE Family Controller
  • 14: Broadcom 43224AG 802.11a/b/g/draft-n Wi-Fi Adapter
  • 16: Bluetooth Device (Personal Area Network)

I then rebooted, and unfortunately, these settings were not picked up. Running the "netstat -rn" displays the same interface list priority as shown above, and again Windows used the WiFi adapter by default.

If anyone has run into the same issues and resolved them, please let me know. The fact that Windows 7 does not prioritize an Ethernet connection over a WiFi connection baffles me, and its annoying to have to finagle around with it every time I boot up.

If you also understand the behavior for the two adapters "Realtek PCIe GBE Family Controller" and "TAP-Win32 Adapter OAS", that would be helpful as well.

This question is related to windows networking windows-7 adapter

The answer is


I had the same problem on Windows 7 64-bit Pro. I adjusted network adapters binding using Control panel but nothing changed. Also metrics where showing that Win should use Ethernet adapter as primary, but it didn't.

Then a tried to uninstall Ethernet adapter driver and then install it again (without restart) and then I checked metrics for sure.

After this, Windows started prioritize Ethernet adapter.


Windows has two different settings in which priority is established. There is the metric value which you have already set in the adapter settings, and then there is the connection priority in the network connections settings.

To change the priority of the connections:

  • Open your Adapter Settings (Control Panel\Network and Internet\Network Connections)
  • Click Alt to pull up the menu bar
  • Select Advanced -> Advanced Settings
  • Change the order of the connections so that the connection you want to have priority is top on the list

Examples related to windows

"Permission Denied" trying to run Python on Windows 10 A fatal error occurred while creating a TLS client credential. The internal error state is 10013 How to install OpenJDK 11 on Windows? I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."? git clone: Authentication failed for <URL> How to avoid the "Windows Defender SmartScreen prevented an unrecognized app from starting warning" XCOPY: Overwrite all without prompt in BATCH Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory how to open Jupyter notebook in chrome on windows Tensorflow import error: No module named 'tensorflow'

Examples related to networking

Access HTTP response as string in Go Communication between multiple docker-compose projects Can't access 127.0.0.1 How do I delete virtual interface in Linux? ConnectivityManager getNetworkInfo(int) deprecated Bridged networking not working in Virtualbox under Windows 10 Difference between PACKETS and FRAMES How to communicate between Docker containers via "hostname" java.net.ConnectException: failed to connect to /192.168.253.3 (port 2468): connect failed: ECONNREFUSED (Connection refused) wget: unable to resolve host address `http'

Examples related to windows-7

ng is not recognized as an internal or external command Why am I getting ImportError: No module named pip ' right after installing pip? How to Delete node_modules - Deep Nested Folder in Windows Telnet is not recognized as internal or external command Multiple -and -or in PowerShell Where-Object statement How do I set ANDROID_SDK_HOME environment variable? Run Batch File On Start-up Why isn't .ico file defined when setting window's icon? How to access shared folder without giving username and password Can't start hostednetwork

Examples related to adapter

Bridged networking not working in Virtualbox under Windows 10 Remove all items from RecyclerView NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference OpenVPN failed connection / All TAP-Win32 adapters on this system are currently in use Call Activity method from adapter Setting network adapter metric priority in Windows 7 How to remove listview all items How to start Activity in adapter? Clear listview content? Android, ListView IllegalStateException: "The content of the adapter has changed but ListView did not receive a notification"