Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Route Selection

Direct answer

Windows route selection picks, for a destination, the route with the longest matching prefix and then the lowest total metric (route metric + interface metric). Find-NetRoute shows the result.

When to use this

Use it when a Windows host with several interfaces, a VPN or a static route sends traffic out of the wrong one.

First 30 seconds

1. Find-NetRoute -RemoteIPAddress <dest>.

2. Longest prefix first, then lowest metric sum.

3. VPN routes may override.

4. Adjust metric or prefix.

5. Re-test.

Operational verification

matching routes → longest prefix → lowest metric

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Assuming the lowest metric wins over a more specific route.
  • Forgetting VPN-pushed routes.
  • Persistent routes left from old networks.
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 when a Windows host with several interfaces, a VPN or a static route sends traffic out of the wrong one.
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 Finding the chosen route Verify boundary

Find-NetRoute -RemoteIPAddress <ip> shows both the selected source address and the route used. Test-NetConnection <ip> -TraceRoute follows the path. VPN clients often add a more specific route or a lower metric, which explains why traffic suddenly takes the tunnel.

Step 2 Example Narrow the fault
Find-NetRoute -RemoteIPAddress 10.20.30.40 | Select-Object InterfaceAlias,NextHop,RouteMetric,DestinationPrefix

If the result shows the VPN interface but you expected the LAN, a more specific route from the VPN (e.g. 10.0.0.0/8) is winning over the LAN's default route.

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

Find-NetRoute shows the decision for one destination, including the source address. Total metric = route metric + interface metric; by default the interface metric is set automatically from link speed. Routes added with New-NetRoute are persistent unless created in the ActiveStore.

Key checks
  • Get-NetRoute — routing table
  • Find-NetRoute -RemoteIPAddress <ip> — selected route and source
  • route print — routing table in CMD
  • tracert <dest> — path
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Route selection steps in Windows:

1. Find all routes matching the destination.

2. Choose the longest prefix (most specific).

3. Among equal prefixes, choose the lowest combined metric.

4. Equal-cost routes on different interfaces: Windows uses one (no general ECMP for hosts).

5. Source address selection (RFC 6724 for IPv6) picks the local address.

Find-NetRoute -RemoteIPAddress 8.8.8.8 | Select IPAddress,InterfaceAlias,NextHop,RouteMetric
Test-NetConnection 10.50.1.10 -DiagnoseRouting
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 Selection. 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?