Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

IPv4, ARP & ICMP

Direct answer

ARP maps IPv4 next hops to MAC addresses; ICMP reports reachability and errors.

When to use this

Use them when a next hop cannot be resolved, ping behaves unexpectedly or ICMP errors must be interpreted.

First 30 seconds

1. IPv4 with ARP for address resolution and ICMP for diagnostics/errors.

2. ICMP types: echo, unreachable, time exceeded, redirect.

3. Don't block all ICMP (PMTUD needs type 3 code 4).

4. ARP cache 4 h on IOS.

5. Check both ARP and ICMP when debugging.

Operational verification

IPv4 packet → ARP for next hop → forward; errors → ICMP

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Blocking all ICMP, breaking Path MTU Discovery.
  • Assuming a ping failure means the host is down (firewalls drop ICMP).
  • Static ARP entries left after hardware changes.
Platform / version applicability
Protocol behaviour per standard; Cisco IOS / IOS XE command examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol behaviour per standard; Cisco IOS / IOS XE command examples.
Key commandshow ip arp
Scope / prerequisiteUse them when a next hop cannot be resolved, ping behaves unexpectedly or ICMP errors must be interpreted.
What next?1 suggested next step
Child topics (this level)3
Evidence0
On this pageJump to a specific section
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • No ARP entry means no Layer 2 rewrite.
  • ICMP unreachable codes name the reason.
  • A blocked ICMP does not mean the path is down.
Key checks
  • show ip arp — ARP
  • ping <ip> — ICMP echo
  • show ip traffic — ICMP counters
ReferenceWhat it is1 section · depth on demand

What this group covers

ARP and IPv6 Neighbor Discovery, ICMP/ICMPv6 message types and the ARP packet fields. Useful when a host cannot reach its gateway, ping results need interpretation, or captures show unexpected ARP traffic.

ReferenceImportant terms & boundaries3 sections · depth on demand

Where to look

QuestionReference
Why does a host not reach its gateway?*ARP & IPv6 Neighbor Discovery*
What does this ping or traceroute message mean?*ICMP & ICMPv6*
What is in this ARP packet?*ARP Packet Field Reference*

IPv4 addressing, ARP and ICMP are the basic mechanics behind every IPv4 connection: hosts use their address and mask to decide whether a destination is local, ARP to find the MAC address of the next hop, and ICMP to report errors and test reachability. Checking each of these in order narrows most connectivity problems to a single host, subnet or path.

IPv4, ARP and ICMP quick reference:

show ip interface brief
show ip arp 10.0.20.15
show ip route 10.0.20.15
ping 10.0.20.15 source Vlan20
traceroute 10.0.20.15

ARP maps IPv4 to MAC within a subnet (default IOS ARP timeout 4 hours). ICMP types to know: 0/8 echo, 3 unreachable (code 4 = fragmentation needed), 5 redirect, 11 time exceeded. Do not block all ICMP — PMTUD depends on type 3 code 4.

Key numbers

ItemValue
ARP cache timeout (Cisco IOS)4 hours
ARP cache (Windows, reachable)15–45 s random, then stale
Max ping payload without fragmentation (1500 MTU)1472 bytes
ICMP type 3 code 4Fragmentation needed (PMTUD)

In depth

IPv4, ARP and ICMP together make basic IP connectivity work: IPv4 addresses and masks identify hosts and subnets, ARP finds the MAC address for an IP on the local link, and ICMP reports errors and supports diagnostics such as ping and traceroute.

ProtocolRole
IPv4Addressing, routing, TTL, fragmentation
ARPIP → MAC on the local subnet
ICMPEcho, unreachable, time exceeded, redirects

When a host cannot communicate, check address and mask, default gateway, ARP resolution of the gateway, then ICMP-based tests along the path.

ReferenceConfiguration & state1 section · depth on demand

Key commands

show ip arp
arp -a
ping -f -l 1472 10.0.0.1      # Windows DF ping
traceroute -n 10.0.0.1
Confirmation

Confirm action

Continue?