Change Network card priority

Created by NHC IT Support, Modified on Mon, 22 May, 2023 at 11:35 AM by NHC IT Support

How to Change Network Adapter Connection Priorities in Windows 10



A network connection is a set of information that enables your computer to connect to the Internet, a network, or another computer. When you install a network adapter in your computer, Windows creates a connection for it in the Network Connections folder. A local area connection is created for an Ethernet network adapter. A wireless network connection is created for a wireless network adapter.


If a PC uses multiple network adapters (ex: Ethernet, Wi-Fi, VPN, etc..), it uses priorities to decide which adapter to use. Windows uses the Automatic Metric feature to determine the connection priorities.


A metric is a value that is assigned to an IP route for a particular network interface (aka: network adapter) that identifies the cost that is associated with using that route. For example, the metric can be valued in terms of link speed, hop count, or time delay. Automatic Metric is a new feature in Windows that automatically configures the metric for the local routes that are based on link speed. The Automatic Metric feature is enabled by default, and it can also be manually configured to assign a specific metric.


The Automatic Metric feature can be useful when the routing table contains multiple routes for the same destination. For example, if you have a computer with a 10 megabit (Mb) network interface and a 100 Mb network interface, and the computer has a default gateway that is configured on both network interfaces, the Automatic Metric feature assigns a higher metric to the slower network interface. This feature can force all of the traffic that is destined for the Internet, for example, to use the fastest network interface that is available.


The Automatic Metric feature is configured independently for each network interface in the network. This feature is useful in situations where you have more than one network interface of the same speed, for example, when each network interface has been assigned a default gateway. In this situation, you may want to manually configure the metric on one network interface, and enable the Automatic Metric feature to configure the metric of the other network interface. This setup can enable you to control the network interface that is used first in the routing of IP traffic.


In addition, the metric that is assigned to specific default gateways can be configured independently for each gateway. This setup enables a further level of control over the metric that is used for the local routes. For example, it is possible to enable the Automatic Metric feature to configure the routes that are assigned to the network interface, and at the same time to manually configure the metric that is assigned to the default gateways.


A network adapter (network interface) with a lower metric value will have a higher connection priority over network adapters with a higher metric value.


Normally, you will not need to change the metric value of a network adapter to change its connection priority unless the default connection priorities do not meet your needs.


Windows usually connects to networks in this priority order:

  1. Ethernet
  2. Wi‑Fi (WLAN)
  3. Cellular (mobile broadband)

See also: Understanding and configuring Windows Connection Manager | Microsoft Hardware Dev Center


This tutorial will show you how to change network adapter connection priorities in Windows 10.


You must be signed in as an administrator to change network adapter connection priorities.


Contents
  • Option One: To Change Network Adapter Connection Priorities in Advanced TCP/IP Settings
  • Option Two: To Change Network Adapter Connection Priorities in PowerShell




OPTION ONE

To Change Network Adapter Connection Priorities in Advanced TCP/IP Settings


1 Open PowerShell, type the Get-NetIPInterface command into PowerShell, and press Enter. (see screenshot below)

Make note of the metric values in the InterfaceMetric column for your network adapters (InterfaceAlias) to determine what metric value you want to use for a network adapter.

Network adapters with a lower metric value will have a higher connection priority over network adapters with a higher metric value.

Change Network Adapter Connection Priorities in Windows 10-change_network_adapter_priority_in_properties-.jpg
2 Press the Win + R keys to open Run, type ncpa.cpl into Run, and click/tap on OK to open Network Connections.

3 Right click or press and hold on the network adapter (ex: "Wi-Fi") you want to change the connection priority for, and click/tap on Properties. (see screenshot below)

Change Network Adapter Connection Priorities in Windows 10-change_network_adapter_priority_in_properties-1.jpg
4 Select Internet Protocol Version 4 (TCP/IPv4), and click/tap on the Properties button. (see screenshot below)

If your connection is IPv6 instead of the usual IPv4, select Internet Protocol Version 6 (TCP/IPv6) instead.

Change Network Adapter Connection Priorities in Windows 10-change_network_adapter_priority_in_properties-2.jpg
5 Click/tap on the Advanced button. (see screenshot below)

Change Network Adapter Connection Priorities in Windows 10-change_network_adapter_priority_in_properties-3.jpg
6 Uncheck the Automatic metric box, enter a custom Interface metric number you want for this network adapter, and click/tap on OK. (see screenshot below)

You would want to enter a higher or lower metric value for the connection priority you want for this network adapter based on the current metric values from step 1 above.

Change Network Adapter Connection Priorities in Windows 10-change_network_adapter_priority_in_properties-4.jpg Change Network Adapter Connection Priorities in Windows 10-change_network_adapter_priority_in_properties-5.jpg
7 Click/tap on OK. (see screenshot below step 5)

8 Click/tap on Close. (see screenshot below step 4)

9 When finished changing network adapter connection priorities, you can close Network Connections if you like.





OPTION TWO

To Change Network Adapter Connection Priorities in PowerShell

To see more usage options for the Set-NetIPInterface command, see: Set-NetIPInterface | Microsoft TechNet


1 Open an elevated PowerShell.

2 Type the Get-NetIPInterface command into PowerShell, and press Enter. (see screenshot below)

Make note of the interface index number (ex: "11") in the IfIndex column for the network adapter (ex: "Wi-Fi") in the InterfaceAlias column you want to change the connection priority for.

Make note of the metric values in the InterfaceMetric column for your network adapters (InterfaceAlias) to determine what metric value you want to use for this network adapter (ex: "Wi-Fi").

Network adapters with a lower metric value will have a higher connection priority over network adapters with a higher metric value.

Change Network Adapter Connection Priorities in Windows 10-get_netipinterface.jpg
3 Type the command below you want to use into PowerShell, and press Enter. (see screenshots below)

(Apply to both IPv4 and IPv6 for network adapter)
Set-NetIPInterface -InterfaceIndex "IfIndex value" -InterfaceMetric "InterfaceMetric value"

OR

(Only Apply to IPv4 for network adapter)
Set-NetIPInterface -InterfaceIndex "IfIndex value" -AddressFamily IPv4 -InterfaceMetric "InterfaceMetric value"

OR

(Only Apply to IPv6 for network adapter)
Set-NetIPInterface -InterfaceIndex "IfIndex value" -AddressFamily IPv6 -InterfaceMetric "InterfaceMetric value"

Substitute IfIndex value in the commands above with the actual interface index number (ex: "11") from step 2 above for the network adapter (ex: "Wi-Fi") you want to change the connection priority for.

Substitute InterfaceMetric value in the commands above with the actual custom metric number (ex: "30") you want to use for the priority order of this network adapter (ex: "Wi-Fi"). You would want to enter a higher or lower metric value for the connection priority you want for this network adapter based on the current metric values from step 2 above.

For example:

Set-NetIPInterface -InterfaceIndex "11" -InterfaceMetric "30"

OR

Set-NetIPInterface -InterfaceIndex "11" -AddressFamily IPv4 -InterfaceMetric "30"

Change Network Adapter Connection Priorities in Windows 10-set-netipinterface-1.jpg Change Network Adapter Connection Priorities in Windows 10-set-netipinterface-2.jpg
4 When finished changing network adapter connection priorities, you can close the elevated PowerShell window if you like.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article