Pcornel
Networking

IP Fundamentals

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

Back to the Topic

Answer

IP fundamentals cover how hosts are addressed and reach each other: IPv4 and IPv6 addressing and subnetting, ARP and Neighbor Discovery, and the TCP and UDP transports that carry application traffic.

Remember

Work bottom-up: correct address and prefix, gateway resolved by ARP (IPv4) or Neighbor Discovery (IPv6), a route to the destination and back, then the transport — TCP must complete a handshake, UDP must get an answer. A ping that works proves only ICMP, not that the application port is open.

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) or ip -br addr and ip route (Linux).

Verify in this order

correct address and prefix → gateway resolved (ARP/ND) → route to destination → return route → transport connects (TCP handshake / UDP reply) → application answers

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=559

Confirmation

Confirm action

Continue?