Use it to see where a Windows host sends traffic for a destination.
Windows Routing Table
The Windows routing table lists each destination prefix with its next hop, interface and route metric. Get-NetRoute and route print show it; 0.0.0.0/0 is the default route.
1. Get-NetRoute | Sort DestinationPrefix.
2. On-link vs gateway routes.
3. Active vs persistent store.
4. Remove wrong routes.
5. Test.
routes from interfaces, DHCP, static and VPN → table
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Persistent routes added without
-p.
Step 2 Where it fails Narrow the fault
Failure analysis for Routing → Windows Routing Table follows the Windows chain of components: host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange.
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.
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.
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
Reading route print
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.15 25
10.0.0.0 255.255.255.0 On-link 10.0.0.15 281
Illustrative output, not captured Evidence. On-link means directly connected. The default route (0.0.0.0/0) is used when nothing more specific matches. Persistent routes are listed at the end.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Reading route print output:
| Column | Meaning |
|---|---|
| Network Destination / Netmask | Prefix |
| Gateway | Next hop or On-link (directly connected) |
| Interface | Local IP used as source |
| Metric | Combined metric (route + interface) |
The "Persistent Routes" section lists routes stored in the registry (HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes) that survive reboots. Get-NetRoute -PolicyStore PersistentStore shows the same.
Mechanics
Follow the path in order: host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange.
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 → Windows 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%