Modern Windows operating systems can manage multiple active network interfaces simultaneously. When a computer connects to both a wired Ethernet cable and a wireless Wi-Fi network, Windows automatically determines which path handles outgoing internet traffic. This determination relies on an algorithm known as the Interface Metric. However, specific routing requirements, such as separating high-speed internet traffic from dedicated local equipment networks, often necessitate manual configuration of network priority.
How Windows Determines Network Priority
Windows assigns a numerical value called an Interface Metric to every active network adapter. The network stack uses this value to calculate route costs within the IP routing table. A lower metric number indicates a higher network priority, meaning Windows will always route traffic through the interface with the lowest assigned value first.
By default, Windows uses the Automatic Metric feature. This feature evaluates the link speed of each network card and assigns priority dynamically. Faster connections, such as Gigabit Ethernet, generally receive lower metric values than wireless connections. Despite this automated logic, scenarios arise where wireless connections offer faster internet speeds than local wired setups, or where an Ethernet cable connects directly to isolated hardware like Programmable Logic Controllers (PLCs) without internet access.
Scenarios Requiring Manual Metric Adjustments
Configuring custom interface metrics provides precise control over traffic flow in complex network environments:
- Dual-Network Environments: Routing general internet traffic through a high-speed Wi-Fi network while keeping local LAN or hardware management traffic on a secondary Ethernet connection.
- Remote Desktop Stability: Preventing unexpected disconnections during remote management sessions when system connections shift between wired and wireless networks.
- Unintended Routing Override: Correcting issues where Windows incorrectly prioritizes a slower Ethernet network over a high-throughput Wi-Fi connection.
How to Adjust Network Adapter Priority via GUI
Users can manually override automatic metrics using the standard Windows Control Panel interface:
- Press Windows Key + R, type
ncpa.cpl, and press Enter to open Network Connections. - Right-click the network adapter intended for primary priority (e.g., Ethernet) and select Properties.
- Highlight Internet Protocol Version 4 (TCP/IPv4) and click the Properties button.
- Click Advanced at the bottom of the properties window.
- Uncheck the box labeled Automatic metric.
- In the Interface metric field, enter a low numerical value, such as
10. Click OK to save. - Repeat the process for the secondary network adapter (e.g., Wi-Fi), setting its metric to a higher number, such as
20.
Managing Priority Using Windows PowerShell
For administrative efficiency, network priorities can be inspected and modified using built-in PowerShell commands.
Viewing Current Metrics
Open PowerShell with administrative credentials and execute the following command to display active adapters alongside their assigned metrics:
Get-NetIPInterface -AddressFamily IPv4
Setting Custom Metrics
To assign a specific metric value to an adapter by name, execute:
Set-NetIPInterface -InterfaceAlias "Ethernet" -InterfaceMetric 10
Apply a higher metric value to the lower-priority interface:
Set-NetIPInterface -InterfaceAlias "Wi-Fi" -InterfaceMetric 20
Verifying and Resetting Configuration Settings
To confirm that Windows is utilizing the desired path for network traffic, open Command Prompt and execute route print. The output displays the active IPv4 route table, showing interface metrics alongside active routes. Additionally, running a trace route command to an external IP address confirms which interface handles outgoing packets.
To return to default operating system behavior, access the IPv4 Advanced settings for each adapter and re-check the Automatic metric box, or execute Set-NetIPInterface -InterfaceAlias "AdapterName" -AutomaticMetric Enabled in PowerShell.

Leave a Reply