Route Selection
Cheat sheet · https://pcornel.dk/topic.php?topic=3082
Answer
Windows route selection picks, for a destination, the route with the longest matching prefix and then the lowest total metric (route metric + interface metric). Find-NetRoute shows the result.
Remember
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.
First checks
Get-NetRoute— routing tableFind-NetRoute -RemoteIPAddress <ip>— selected route and sourceroute print— routing table in CMDtracert <dest>— path
Verify in this order
matching routes → longest prefix → lowest metric
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=3082