Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Route Metric

Direct answer

The route metric is the cost set on an individual route. Windows adds it to the interface metric; the lowest total wins between routes to the same prefix.

When to use this

Use it to prefer one of two routes to the same destination, such as a primary and a backup gateway.

First 30 seconds

1. Get-NetRoute | Select DestinationPrefix,NextHop,RouteMetric,InterfaceMetric.

2. Total = route + interface metric.

3. Change: Set-NetRoute -RouteMetric.

4. Floating backup route with a higher metric.

5. Verify.

Operational verification

route metric + interface metric → lowest total among equal prefixes

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Changing the route metric but not the interface metric, which still decides the total.
  • Hard-coded metrics overwritten by VPN clients.
  • Expecting metric to override a more specific route — prefix length always wins.
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 prefer one of two routes to the same destination, such as a primary and a backup gateway.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
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

Total = route metric + interface metric, so a low route metric can still lose on a high-metric interface. Set it when creating the route: New-NetRoute … -RouteMetric <n>, or change it with Set-NetRoute.

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

Changing metrics

Get-NetIPInterface | Sort-Object InterfaceMetric
Set-NetIPInterface -InterfaceAlias "Ethernet" -InterfaceMetric 10
Set-NetRoute -DestinationPrefix 0.0.0.0/0 -InterfaceAlias "Wi-Fi" -RouteMetric 50

Documented example, not captured output. With automatic metric, Windows sets the interface metric from link speed (faster = lower). Total metric = route metric + interface metric.

ReferenceHow it works1 section · depth on demand

In depth

Route metric is per route (RouteMetric in PowerShell). Effective metric = RouteMetric + InterfaceMetric.

New-NetRoute -DestinationPrefix 10.60.0.0/16 -InterfaceAlias Backup -NextHop 10.30.0.1 -RouteMetric 10
Set-NetRoute -DestinationPrefix 0.0.0.0/0 -InterfaceAlias Ethernet -RouteMetric 0
Get-NetRoute -DestinationPrefix 10.60.0.0/16 | ft ifIndex,NextHop,RouteMetric,ifMetric

Use different route metrics to make one path a backup for the same prefix (failover only when the preferred interface goes down).

ReferenceConfiguration & state1 section · depth on demand

Commands

Get-NetIPInterface | Sort-Object InterfaceMetric | Select InterfaceAlias,AddressFamily,InterfaceMetric,AutomaticMetric
Set-NetIPInterface -InterfaceAlias Wi-Fi -InterfaceMetric 50
Set-NetRoute -DestinationPrefix 0.0.0.0/0 -InterfaceAlias Ethernet -RouteMetric 10

Documented example, not captured output.

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 → Route 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?