Pcornel
Windows · Windows Networking

IPv4

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

Back to the Topic

Answer

Windows IPv4 is the host implementation of Internet Protocol version 4, including unicast addressing/prefixes, source selection, local-subnet decisions, default/other routes, ARP next-hop resolution and fragmentation/MTU behavior.

Remember

  • An IPv4 address is meaningful only with its prefix/interface context.
  • 169.254.0.0/16 link-local addressing often indicates no usable DHCP lease, but it does not itself identify why DHCP failed.
  • A default gateway is represented by a default route; more-specific routes override it.
  • IPv4 next-hop reachability normally requires ARP on Ethernet-like links.
  • IPv4 reachability and DNS resolution are separate evidence chains.

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

address + prefix → on-link decision → ARP → gateway for off-link

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 → IPv4 reference map

BoundaryMeaningEvidence limit
Address/prefixLocal IPv4 identity and on-link rangedoes not prove uniqueness/correct subnet
APIPA169.254/16 link-local stateoften follows DHCP failure but cause unresolved
RouteDestination selectionmost specific prefix wins first
ARPIPv4 next-hop link mappingentry can be incomplete/stale
ICMP/TCPControlled reachability testsprotocol-specific evidence only

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

Confirmation

Confirm action

Continue?