Use this when routes disappear after reboot.
Persistent Routes
Persistent routes survive reboots. Add them with route -p add 10.20.0.0 mask 255.255.0.0 10.0.0.1 or New-NetRoute; routes added without -p disappear at restart.
1. Get-NetRoute -PolicyStore PersistentStore.
2. Add: New-NetRoute -DestinationPrefix <net> -NextHop <gw> -InterfaceAlias <if> (persistent by default) or route -p add.
3. Survives reboot?
4. Remove obsolete ones.
5. Document.
persistent route stored → restored at boot
Context & applicabilityCommon mistakes · platform/version boundaries
route addwithout-p, so the route disappears after reboot.- Persistent route via a gateway that is not on any local subnet (ignored).
- Static routes duplicating what DHCP option 121 or the default gateway already provides.
- Forgetting the interface index on hosts with several NICs (
route add ... if 12).
Operational reference
Fast context before you go deeper.
Get-NetRoute -PolicyStore PersistentStoreEvidence · 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.
- route -p add makes a route persistent.
- Persistent routes are stored in the registry.
- New-NetRoute with -PolicyStore PersistentStore also persists.
Get-NetRoute— routing tableFind-NetRoute -RemoteIPAddress <ip>— selected route and sourceroute print— routing table in CMDtracert <dest>— path
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Persistent routes survive reboots; non-persistent ones are lost.
route -p add 10.70.0.0 mask 255.255.0.0 10.20.0.1
New-NetRoute -DestinationPrefix 10.70.0.0/16 -InterfaceAlias Storage-A -NextHop 10.20.0.1 -PolicyStore PersistentStore
Get-NetRoute -PolicyStore PersistentStore
Remove-NetRoute -DestinationPrefix 10.70.0.0/16 -PolicyStore PersistentStore -Confirm:$false
New-NetRoute without -PolicyStore creates the route in both active and persistent stores; route add without -p is active only.
ReferenceConfiguration & state1 section · depth on demand
Commands
route -p add 10.20.0.0 mask 255.255.0.0 10.0.0.1 metric 5
New-NetRoute -DestinationPrefix 10.20.0.0/16 -InterfaceAlias "Ethernet" -NextHop 10.0.0.1 -RouteMetric 5
Get-NetRoute -PolicyStore PersistentStore
route print # "Persistent Routes" section at the bottom
Remove-NetRoute -DestinationPrefix 10.20.0.0/16 -Confirm:$false
Documented example, not captured output. New-NetRoute is persistent by default (-PolicyStore ActiveStore makes it temporary). The next hop must be on a directly connected subnet.
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 → Persistent Routes. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%