Use this topic when traffic takes the wrong interface, a VPN/virtual adapter changes reachability, multiple routes overlap, a static route appears ineffective, or the same destination works from one Windows host but not another.
Routing Table
The Windows Routing Table is the runtime set of IPv4/IPv6 routes used to choose an egress interface and next hop for each destination, including connected/on-link, default, static and dynamically installed host routes.
1. Get-NetRoute / route print.
2. Find-NetRoute -RemoteIPAddress <dest> — chosen route and source.
3. Persistent static: New-NetRoute -PolicyStore PersistentStore.
4. Metrics: interface + route.
5. Test path: tracert <dest>.
destination → longest prefix → lowest metric (route + interface) → next hop
Check neighbor/link state and observe the actual protocol flow on the selected interface.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not troubleshoot a route table by sorting only on metric. Do not remove VPN/virtual routes without identifying their purpose. Do not infer route correctness from ping alone.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
For the exact target, enumerate covering routes, select the longest prefix and compare equivalent metrics. Then verify the route's interface is up and the next hop can be resolved/reached.
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.
- Longest prefix match is the first major route-selection rule.
- Metrics do not make a less-specific route beat a more-specific route.
- Route metric and interface metric can both influence preference among equivalent candidates.
- A route's presence does not prove its next hop or egress path is usable.
- IPv4 and IPv6 routes are separate and an application may choose either family.
ReferenceWhat it is1 section · depth on demand
Core model
The routing table is the operational decision set for local IP forwarding. Overlapping connected, VPN, host and default routes are common on Windows systems with multiple adapters.
ReferenceWhy it matters1 section · depth on demand
Reading and changing routes
route print -4
Get-NetRoute -AddressFamily IPv4 | Sort RouteMetric
Find-NetRoute -RemoteIPAddress 10.20.0.5
New-NetRoute -DestinationPrefix 10.20.0.0/16 -NextHop 10.0.0.254 -InterfaceAlias Ethernet
Documented example, not captured output. Selection: longest prefix, then lowest total metric (route metric + interface metric).
ReferenceImportant terms & boundaries2 sections · depth on demand
Windows boundary
A route can look unexpected yet be correct because it is more specific. Conversely, lowering a default-route metric cannot override a host/network route with a longer prefix.
In depth
The Windows routing table lists destination prefixes, next hops, interfaces and metrics.
Get-NetRoute -AddressFamily IPv4 | Sort-Object DestinationPrefix | ft DestinationPrefix,NextHop,InterfaceAlias,RouteMetric,ifMetric,Protocol
route print -4
Find-NetRoute -RemoteIPAddress 10.20.30.40 # which route and source address will be used
Find-NetRoute is the fastest way to answer "which interface will this traffic use?" on multi-homed servers.
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 Windows Networking → Routing Table. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows Networking → Routing Table reference map
Fast lookup boundaries for Windows Networking → Routing Table.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Prefix | Destination coverage | longest match wins first |
| Next hop | Gateway or on-link marker | requires neighbor/link path |
| Interface | Egress association | must correlate to adapter state |
| Route metric | Route preference input | combined/contextual with interface metric |
| Persistence/source | How route arrived | does not alter reachability proof |