Use it to make Windows prefer one interface — wired over Wi-Fi, LAN over VPN — for routes of equal length.
Interface Metric
The interface metric is a per-interface cost that Windows adds to every route through that interface. By default it is set automatically from the link speed; lower is preferred.
1. Get-NetIPInterface | Select InterfaceAlias,InterfaceMetric,AutomaticMetric.
2. Lower metric preferred.
3. Set manually for multi-homed hosts.
4. Effect on default route choice.
5. Verify.
interface metric added to route metric → total
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Wi-Fi winning over Ethernet because automatic metric was overridden.
- VPN adapters with low metrics capturing all traffic unexpectedly.
Step 2 Where it fails Narrow the fault
Failure analysis for Routing → Interface Metric follows the Windows chain of components: host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Set it with Set-NetIPInterface -InterfaceIndex <n> -InterfaceMetric <value>; this turns off the automatic metric for that interface. It only matters between routes of the same prefix length. IPv4 and IPv6 have separate interface metrics.
Get-NetRoute— routing tableFind-NetRoute -RemoteIPAddress <ip>— selected route and sourceroute print— routing table in CMDtracert <dest>— path
ReferenceWhy it matters1 section · depth on demand
Automatic metric values (examples)
| Link speed | Interface metric |
|---|---|
| ≥ 100 Gb/s | 5 |
| ≥ 10 Gb/s | 10 |
| ≥ 2 Gb/s | 15 |
| ≥ 1 Gb/s | 25 |
| ≥ 100 Mb/s | 35 |
| ≥ 10 Mb/s | 55 |
Override with Set-NetIPInterface -InterfaceMetric. DNS query order also follows interface metrics, so a VPN adapter with a low metric gets DNS queries first.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Interface metric (per interface and address family) is added to each route's metric. With automatic metric enabled, faster links get lower metrics; set it manually to control preference between equally specific routes (e.g. wired over Wi-Fi, VPN over local for corporate prefixes).
Get-NetIPInterface | ft InterfaceAlias,AddressFamily,InterfaceMetric
Set-NetIPInterface -InterfaceAlias Wi-Fi -InterfaceMetric 50
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → Interface Metric. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%