Default Gateway
Cheat sheet · https://pcornel.dk/topic.php?topic=3065
Answer
A Windows Default Gateway is the next-hop concept represented by a default route used when no more-specific route matches a destination; IPv4 and IPv6 maintain separate route tables and defaults.
Remember
- The default gateway is not consulted when a more-specific route matches.
- Longest-prefix match is evaluated before route/interface metric preference.
- A configured gateway can be unreachable at Layer 2 and still appear in configuration.
- Multiple default routes are possible; preference is context/metric dependent.
- IPv4 and IPv6 default routes are independent.
First checks
Get-NetIPConfiguration— addresses, gateway and DNS per interfaceGet-NetAdapter— adapters, status and link speedGet-NetRoute -AddressFamily IPv4— routes and metricsTest-NetConnection <host> -Port <p>— ping, route and TCP port testipconfig /all— full IP configuration
Verify in this order
0.0.0.0/0 route → gateway on-link → ARP → forwarding
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.
Windows Networking → Default Gateway reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| 0.0.0.0/0 | IPv4 default route | used only absent longer match |
| ::/0 | IPv6 default route | independent IPv6 table |
| Metric | Tie/preference input | after prefix specificity |
| Next hop | Gateway neighbor | must resolve/reach locally |
| Return path | Remote route back | not proven locally |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3065