BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Switching Basics

show ip arp

Shows the router’s ARP cache: which MAC address it has resolved for each IPv4 address, and on which interface.

Written by a working field network engineer · CCNA, Security+, CySA+

The ARP cache maps IPv4 addresses to MAC addresses on each connected subnet. If a ping to a directly connected host fails, this tells you whether the router ever got as far as resolving its MAC.

Example output

R1#show ip arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.0.12.1               -   0050.7966.6815  ARPA   GigabitEthernet0/1
Internet  10.0.12.2              12   0050.7966.6816  ARPA   GigabitEthernet0/1
Internet  192.168.10.1            -   0050.7966.6812  ARPA   GigabitEthernet0/0
Internet  192.168.10.11           3   0050.7966.6817  ARPA   GigabitEthernet0/0
Internet  192.168.10.12           0   0050.7966.6818  ARPA   GigabitEthernet0/0
Internet  203.0.113.1             8   0050.7966.6a01  ARPA   GigabitEthernet0/2
Internet  203.0.113.2             -   0050.7966.6813  ARPA   GigabitEthernet0/2

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
AddressThe IPv4 address resolved.
Age (min)Minutes since the entry was learned or refreshed. A dash means it is the router’s own address.
Hardware AddrThe MAC address for that IP, or “Incomplete” while a request is unanswered.
InterfaceThe interface the subnet is reached through.

When it doesn’t look right

An entry shows Incomplete.

The router sent an ARP request and got no reply: the host is off, in a different VLAN, or has a firewall dropping ARP. Check the switch port VLAN and the host’s address and mask.

The first ping to a host shows one timeout (.!!!!).

Normal: the first echo was dropped while ARP resolved. Only a repeated failure is a problem.

Two IPs share one MAC unexpectedly.

Could be proxy ARP or a secondary address, or ARP spoofing. Dynamic ARP Inspection protects access VLANs from the last case.

Related commands

Try it yourself

Learn it in the CCNA path

Topic

Switching Basics — How a switch learns MAC addresses, how to read interface status, and how to fix speed, duplex and administratively down ports.

All 57 commands