Pcornel
Networking · Network & Protocols › IPv4, ARP & ICMP

ICMP & ICMPv6

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

Back to the Topic

Answer

ICMP is how IP reports problems and tests reachability: ping uses echo request and reply, traceroute uses "time exceeded", and routers send "destination unreachable" or "packet too large" when they cannot deliver. ICMPv6 does the same and also carries neighbour discovery.

Remember

The messages say why: no route, administratively prohibited, packet too large. A ping timeout proves little — echo may simply be filtered. An asterisk at one traceroute hop with later hops answering is rate limiting, not loss. Never block ICMPv6 wholesale.

First checks

  • ping <ip> source <interface> — reachability from a specific address, including the way back.
  • traceroute <ip> — the last router that answered.
  • show ip traffic | section ICMP — ICMP messages sent and received by type.
  • debug ip icmp — messages with type and code; use briefly.
  • Cisco ping characters: ! reply, . timeout, U unreachable, A prohibited, M could not fragment.

Commands

show ip traffic
debug ip icmp

Verify in this order

echo request routed to the destination → not filtered → echo reply routed back to the source address → received; on failure, the device that could not deliver returns an ICMP error naming the reason

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

Confirmation

Confirm action

Continue?