Use it to prefer one of two routes to the same destination, such as a primary and a backup gateway.
Route Metric
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.
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.
route metric + interface metric → lowest total among equal prefixes
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
Operational reference
Fast context before you go deeper.
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.
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.
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
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.
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 → 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%