Pcornel
Windows · Routing

Persistent Routes

Cheat sheet · https://pcornel.dk/topic.php?topic=3086

Back to the Topic

Answer

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.

Remember

  • route -p add makes a route persistent.
  • Persistent routes are stored in the registry.
  • New-NetRoute with -PolicyStore PersistentStore also persists.

First checks

  • Get-NetRoute — routing table
  • Find-NetRoute -RemoteIPAddress <ip> — selected route and source
  • route print — routing table in CMD
  • tracert <dest> — path

Verify in this order

persistent route stored → restored at boot

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3086

Confirmation

Confirm action

Continue?