Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Interface Metric

Direct answer

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.

When to use this

Use it to make Windows prefer one interface — wired over Wi-Fi, LAN over VPN — for routes of equal length.

First 30 seconds

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.

Operational verification

interface metric added to route metric → total

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse it to make Windows prefer one interface — wired over Wi-Fi, LAN over VPN — for routes of equal length.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points

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.

Key checks
  • Get-NetRoute — routing table
  • Find-NetRoute -RemoteIPAddress <ip> — selected route and source
  • route print — routing table in CMD
  • tracert <dest> — path
ReferenceWhy it matters1 section · depth on demand

Automatic metric values (examples)

Link speedInterface metric
≥ 100 Gb/s5
≥ 10 Gb/s10
≥ 2 Gb/s15
≥ 1 Gb/s25
≥ 100 Mb/s35
≥ 10 Mb/s55

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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Confirmation

Confirm action

Continue?