Change the Interface Metric to Set Network Priority in Windows 11
- 12 steps
- Needs administrator rights
- Hyper-V needs Windows 11 Pro, Enterprise or Education
The interface metric in Windows 11 is a number that tells the system which network adapter to prefer when more than one is connected. The adapter with the lowest number wins. Set Ethernet to 10 and Wi-Fi to 20, and Windows sends traffic over the cable.
The quickest route is Control Panel: open the adapter’s IPv4 properties and clear Automatic metric. PowerShell does the same job in one command. Both methods need an administrator account and work the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2). A restart is rarely needed.
To change the interface metric in Windows 11, open Control Panel’s Network Connections (type ncpa.cpl in the Run box), then open the adapter’s IPv4 properties and clear Automatic metric. Enter a lower number for the adapter you want to prefer, such as 10 for Ethernet. The lowest number wins, so Windows sends traffic over that adapter first. Administrator rights are required.
What the interface metric does
Think of a metric as a cost. Windows picks the route with the lowest cost. When a PC has two connections to the internet, such as a wired Ethernet port and Wi-Fi, Windows must pick one for outgoing traffic. It compares the cost of each route and uses the cheapest one. The adapter’s interface metric is part of that cost.
By default, Windows sets the metric itself. This is the Automatic metric option. It assigns a lower number to faster connections, so a gigabit Ethernet link usually beats Wi-Fi without any help from you.
You override this when the automatic choice is wrong for you. Common cases are a slower Ethernet link that Windows still prefers or a USB tethering adapter that keeps taking over. Another is a Wi-Fi connection you want to use for the internet while a second adapter handles a local device.
Windows also adds a number for the route itself. The total cost of a route is the interface metric plus that route metric, and Windows always picks the lowest total. A smaller interface metric makes the adapter more attractive.
Before you start
Check these three points first so the change does what you expect.
- Use an administrator account. Both methods below ask for administrator approval. On a standard account, Windows asks for an admin password.
- Know your adapter names. Windows lists them as Ethernet, Wi-Fi, or something more specific such as Ethernet 2. If several look alike, rename your network adapters first so you pick the right one.
- Pick two numbers in advance. Choose a small whole number for the adapter you want first, such as 10, and a larger one for the backup, such as 20. Leave a gap so you can slot in a third adapter later.
Check the current interface metrics
Right-click Start, click Terminal, and run this command:
Get-NetIPInterface -AddressFamily IPv4 | Sort-Object InterfaceMetric | Format-Table InterfaceAlias, InterfaceMetric, AutomaticMetric, ConnectionStateThe table lists each adapter by name. The InterfaceMetric column shows its current number, and AutomaticMetric shows whether Windows sets it for you. The ConnectionState column shows whether the adapter is connected. Write down the numbers for any adapter you plan to change.
Virtual adapters (connections made by software) also appear here. These come from VPN apps, Hyper-V (Microsoft’s virtual machine feature) or WSL (Windows Subsystem for Linux). Ignore them unless you use them for your main connection.
Change the interface metric in Control Panel
These steps change the interface metric to set network priority in Windows 11 by turning off Automatic metric and entering your own number. Repeat them for each adapter you want to rank.
- Press the Win+R. The Run box opens.

Run dialog - Type
ncpa.cpland press Enter. The Network Connections window opens in Control Panel and lists every adapter, such as Ethernet and Wi-Fi. - Right-click the adapter you want to prefer, then click Properties. Approve the User Account Control prompt if it appears. This step requires administrator privileges.

- Select Internet Protocol Version 4 (TCP/IPv4) in the list. The name highlights, and the Properties button becomes active.
- Click Properties. The window shows whether the adapter gets its address automatically or uses a fixed one. Leave those options as they are.

- Click Advanced. The Advanced TCP/IP Settings window opens on the IP Settings tab.
- Clear the Automatic metric check box. The Interface metric box below it, which was greyed out, now accepts input.

- Type a number in the Interface metric box. Use 10 for the adapter Windows should prefer.

- Click OK to close Advanced TCP/IP Settings.
- Click OK to close the IPv4 Properties window.
- Click OK or Close on the adapter’s Properties window. Your connection may drop for a second while Windows applies the change.
- Repeat steps 3 to 10 for the second adapter. Enter a higher number, such as 20, so it becomes the backup.
The same Advanced TCP/IP Settings window has a separate Default gateways section with its own Automatic metric check box. A default gateway is the router address your traffic leaves through. Leave that section alone for this task. The interface metric field at the bottom of the window is the one that sets adapter priority.
Change the interface metric with PowerShell
PowerShell sets the interface metric in a single command, which is quicker when you manage several adapters or repeat the task on more than one PC. This method requires administrator privileges.
- Right-click Start and click Terminal (Admin). Approve the User Account Control prompt. A PowerShell tab opens with administrator rights.
- Run the
Get-NetIPInterfacecommand from the check section above. Note the exact name in the InterfaceAlias column for each adapter. - Set the preferred adapter. Replace Ethernet with the name from your table:PowerShell
Set-NetIPInterface -InterfaceAlias "Ethernet" -AutomaticMetric Disabled -InterfaceMetric 10The prompt returns with no message. In PowerShell, silence means the command worked.
- Set the backup adapter with a higher number:PowerShell
Set-NetIPInterface -InterfaceAlias "Wi-Fi" -AutomaticMetric Disabled -InterfaceMetric 20 - Run the
Get-NetIPInterfacecommand again. InterfaceMetric now shows 10 and 20, and AutomaticMetric shows Disabled for both adapters.
If PowerShell reports that no matching interface was found, the name in quotes does not match InterfaceAlias. Copy the name exactly, including spaces and any number at the end.
If PowerShell reports access denied, the window is not running with administrator rights. Close it and reopen it with Terminal (Admin).
Confirm which adapter Windows uses
Changing the number does not prove Windows picked the adapter you wanted. This check shows the routes Windows uses to reach the internet. Run it in any PowerShell window:
Get-NetRoute -DestinationPrefix "0.0.0.0/0"The 0.0.0.0/0 entry is the default route, the path for all traffic that does not stay on your local network. Each row shows an InterfaceIndex, a RouteMetric, and an InterfaceMetric. The row with the lowest total of the two metrics is the connection Windows prefers.
Existing connections may stay on the old adapter until they reconnect. To test, disconnect and reconnect the adapter, or open a new browser tab to a site you have not visited this session. If both adapters are active, Windows now routes new traffic through the one with the lower number.
For a second signal, compare speeds. When Wi-Fi was your faster link and you moved priority to Ethernet, a speed test should now reflect the Ethernet connection. Before you rely on Wi-Fi as the backup, check that its signal is strong enough for the work you need it to do. See Wi-Fi signal strength check for help with that.
Fix problems with the metric
Most failures come from a handful of causes. Match what you see to the list below.
- The Interface metric box stays greyed out. The Automatic metric check box is still ticked. Clear it first, and the field becomes editable.
- The Advanced button or the Properties button does nothing. You may be on a standard account, or a work or school policy may lock the adapter settings. Sign in with an administrator account, or ask your IT team if the PC is managed.
- An adapter is missing from Network Connections. The adapter is disabled or its driver failed. Reinstall the network adapter driver, then repeat the steps.
- Windows still uses the wrong adapter. Run the
Get-NetRoutecommand. For each row, add the RouteMetric and InterfaceMetric numbers and compare the totals. A VPN client can add its own routes with very low metrics, and those override your settings for the traffic it carries. Check the VPN app’s settings for an option to stop it taking over the default route. - Traffic goes to the slower adapter only for one app. Some apps are set to use one specific adapter. The interface metric controls normal routing, so an app that picks its own adapter ignores it.
- The setting returns to automatic after a network repair. Windows may switch the setting back to Automatic metric after a network repair. Reinstalling an adapter driver or resetting networking can restore the default behaviour. Reapply your values afterwards.
If the connection itself is the problem, a metric will not help. When Windows keeps joining the wrong wireless network, forget the Wi-Fi network that stopped working and join it again.
Undo the change and return to automatic metrics
You can return to Windows’s own choice at any time. This clears your numbers and lets Windows rank the adapters by link speed again.
In Control Panel, open Advanced TCP/IP Settings for each adapter you changed and tick Automatic metric again. Click OK on each window. The Interface metric box greys out and Windows takes over.
In PowerShell, run this command for each adapter in an elevated window. Replace the name with your own:
Set-NetIPInterface -InterfaceAlias "Ethernet" -AutomaticMetric EnabledRun the Get-NetIPInterface command again. AutomaticMetric should read Enabled for the adapter.
What to do next
If you reinstall a driver or reset networking later, check the metrics again, because the adapters may return to automatic. The guide to resetting the network stack in Windows 11 explains what that reset touches. If you also need Windows to treat a connection differently for sharing and firewall rules, make your network public or private in Windows 11 next.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!