IPv4
Cheat sheet · https://pcornel.dk/topic.php?topic=562
Answer
IPv4 uses 32-bit addresses written as four decimal octets (192.0.2.10) with a prefix length (/24) that separates network and host bits; hosts reach other networks through a default gateway.
Remember
Same subnet → the host ARPs for the destination directly; different subnet → it ARPs for the default gateway. Network and broadcast addresses are not usable for hosts (except /31 point-to-point links). 127.0.0.0/8 is loopback and 169.254.0.0/16 means the host got no DHCP address.
First checks
show ip interface brief— interface addresses and status.show ip route <dest>— the route and next hop used.show ip arp <next-hop>— next hop resolved to a MAC address.ping <dest> source <if>— reachability from a chosen source.traceroute <dest>— where the path stops.- Host:
ipconfig /all(Windows) orip -br addrandip route(Linux).
Verify in this order
address and mask valid → same-subnet check → ARP for destination or gateway → frame delivered → gateway routes onward → return path exists
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=562