IPv4
Cheat sheet · https://pcornel.dk/topic.php?topic=3061
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 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
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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Address/prefix | Local IPv4 identity and on-link range | does not prove uniqueness/correct subnet |
| APIPA | 169.254/16 link-local state | often follows DHCP failure but cause unresolved |
| Route | Destination selection | most specific prefix wins first |
| ARP | IPv4 next-hop link mapping | entry can be incomplete/stale |
| ICMP/TCP | Controlled reachability tests | protocol-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