Pcornel
Windows · Windows Networking

Default Gateway

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

Back to the Topic

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 interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /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

BoundaryMeaningEvidence limit
0.0.0.0/0IPv4 default routeused only absent longer match
::/0IPv6 default routeindependent IPv6 table
MetricTie/preference inputafter prefix specificity
Next hopGateway neighbormust resolve/reach locally
Return pathRemote route backnot 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

Confirmation

Confirm action

Continue?