Pcornel
Windows · Routing

Route Metric

Cheat sheet · https://pcornel.dk/topic.php?topic=3085

Back to the Topic

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.

Remember

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.

First checks

  • Get-NetRoute — routing table
  • Find-NetRoute -RemoteIPAddress <ip> — selected route and source
  • route print — routing table in CMD
  • tracert <dest> — path

Verify in this order

route metric + interface metric → lowest total among equal prefixes

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3085

Confirmation

Confirm action

Continue?