Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Routing Table

Direct answer

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.

When to use this

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.

First 30 seconds

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>.

Operational verification

destination → longest prefix → lowest metric (route + interface) → next hop

Evidence · next step

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
Common mistakes
Common traps

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.

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 this topic when traffic takes the wrong interface, a VPN/virtual adapter changes reachability, multiple routes over…
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.

1 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 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 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
  • 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.
Key checks
  • Get-NetIPConfiguration — addresses, gateway and DNS per interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /all — full IP configuration
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.

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 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%
Terminology layer

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.

Aliases that resolve here
windows routing tablewindows route selectionwindows route metricwindows interface metric
Embedded reference data

Quick lookup tables

Windows Networking → Routing Table reference map

Fast lookup boundaries for Windows Networking → Routing Table.

BoundaryMeaningEvidence limit
PrefixDestination coveragelongest match wins first
Next hopGateway or on-link markerrequires neighbor/link path
InterfaceEgress associationmust correlate to adapter state
Route metricRoute preference inputcombined/contextual with interface metric
Persistence/sourceHow route arriveddoes not alter reachability proof
Confirmation

Confirm action

Continue?