CCNA 200-301

CCNP Enterprise

CCNP Security

CCIE Enterprise Lab

CCIE Security Lab

CCNP Service Provider

CCNP Data Center

CCNP Collaboration

CCIE DC Lab

When troubleshooting network connectivity, identifying duplicate IP addresses, or tracking down the physical switch port connected to an endpoint, inspecting the Address Resolution Protocol (ARP) table on a Cisco switch is an essential diagnostic step. The ARP table maintains the dynamic and static bindings between Layer 3 IPv4 addresses and Layer 2 MAC addresses.

However, whether you can see host IP-to-MAC bindings on a switch depends entirely on whether the switch is operating at Layer 2 or Layer 3. Before running commands, it is crucial to understand which table your switch uses to handle network traffic.

ARP Table vs. MAC Address Table: Understanding the Architectural Difference

A common point of confusion when working with Cisco Catalyst and Nexus switches is running an ARP command on an access switch and seeing an almost empty table. Switches maintain two distinct forwarding databases depending on the OSI layer at which they operate: the ARP table (Layer 3) and the Content Addressable Memory (CAM) or MAC address table (Layer 2).

Feature / CriteriaARP Table (show ip arp)MAC Address Table (show mac address-table)
OSI LayerLayer 3 (Network Layer) to Layer 2 mappingLayer 2 (Data Link Layer)
Mapping TypeIPv4 Address $\rightarrow$ MAC AddressMAC Address $\rightarrow$ Physical Port / VLAN
Hardware TableSoftware cache / Ternary Content Addressable Memory (TCAM)Content Addressable Memory (CAM)
Primary FunctionResolving next-hop MAC addresses for packet routing and local device managementForwarding Ethernet frames directly to specific switch ports without flooding
Population MethodIncoming ARP requests and replies (broadcast and unicast)Learning source MAC addresses from frames entering a switch port
Default Aging Timer14,400 seconds (4 hours in Cisco IOS/IOS-XE)300 seconds (5 minutes in Cisco IOS/IOS-XE)
Behavior on Layer 2 SwitchesDisplays only the switch’s own Switch Virtual Interface (SVI) IP, default gateway, and active management connectionsDisplays all MAC addresses learned across all active switch ports and VLANs
Behavior on Layer 3 / Multilayer SwitchesDisplays all resolved IP-to-MAC bindings for devices communicating across routed interfaces and SVIsDisplays all Layer 2 MAC addresses learned per switch port and VLAN

If you are inspecting a pure Layer 2 switch and need to locate where a device is plugged in, the MAC address table is the primary tool. If the switch acts as the default gateway (Layer 3 multilayer switch), the ARP table contains the complete mapping of connected endpoints.


How to View and Interpret the Cisco Switch ARP Table

To view the ARP cache on any Cisco IOS or Cisco IOS-XE switch, use the Privileged EXEC mode command line.

Step 1: Enter Privileged EXEC Mode

Connect to your switch via SSH, Telnet, or console, and authenticate:

Switch> enable
Password: *********
Switch#

Step 2: Run the ARP Display Command

In Cisco IOS, show arp is a direct functional alias for show ip arp. Both commands yield the identical forwarding cache:

Switch# show ip arp

A representative output from a Layer 3 Catalyst switch resembles the following:

Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.10.20.1              -   0000.0c9f.f001  ARPA   Vlan20
Internet  10.10.20.15            14   0050.56b2.11aa  ARPA   Vlan20
Internet  10.10.20.18             0   c471.fe89.43cd  ARPA   Vlan20
Internet  10.10.30.1              -   0000.0c9f.f002  ARPA   Vlan30
Internet  10.10.30.45            82   a036.9fa1.5678  ARPA   Vlan30
Internet  172.16.1.2            112   001b.2a55.77ee  ARPA   GigabitEthernet1/0/1

Step 3: Decode the Output Fields

  • Protocol: Displays the network protocol used. In IPv4 environments, this field reads Internet.
  • Address: The Layer 3 IPv4 address assigned to the target device.
  • Age (min): Indicates how long (in minutes) since the entry was refreshed:
  • A hyphen (-) indicates a static or locally owned address that never ages out (such as the switch’s own SVI or physical interface IP).
  • A numerical value indicates the age of a dynamically resolved entry. Cisco switches reset this counter to 0 whenever an ARP refresh occurs or traffic is received from the host.
  • Hardware Addr: The 48-bit MAC address of the device, formatted in Cisco’s standard 3-group dotted hexadecimal notation (xxxx.xxxx.xxxx).
  • Type: The encapsulation format used on the link. In modern Ethernet networks, this is almost exclusively ARPA (Ethernet II).
  • Interface: The local Layer 3 interface, routed port, or VLAN (SVI) through which the switch communicates with that IP address.

Filtering Large ARP Tables by VLAN, Interface, or Host

On large distribution or core switches, the ARP table may contain thousands of entries. Rather than manually paging through the output, you can narrow your search using native command parameters or Cisco IOS pipe filters.

Method 1: Using Built-in Command Parameters

Cisco IOS permits filtering directly within the show ip arp command string:

  1. Filter by specific VLAN or interface:
    text
    Switch# show ip arp vlan 20
    Switch# show ip arp gigabitethernet 1/0/1
  2. Filter by a known IPv4 address:
    text
    Switch# show ip arp 10.10.20.15
  3. Filter by a known MAC address:
    text
    Switch# show ip arp 0050.56b2.11aa

Method 2: Using CLI Regular Expressions and Pipe (|) Filters

Pipe operations allow you to extract specific patterns from the output:

  • Match an IP subnet or keyword (include):
    text
    Switch# show ip arp | include 10.10.20.
  • Omit local static/SVI entries (exclude):
    Since local interfaces display a hyphen in the Age column, exclude the hyphen to isolate active endpoints:
    text
    Switch# show ip arp | exclude -
  • Search for multiple entries simultaneously (regular expression):
    text
    Switch# show ip arp | include (10.10.20.15|10.10.30.45)

Practical Application: Finding the Switch Port for an IP Address

To track down the exact physical switch port where a specific IP address resides:
1. Locate the MAC address using show ip arp <ip-address>.
2. Copy the resulting hardware address and inspect the Layer 2 forwarding table:
text
Switch# show mac address-table address 0050.56b2.11aa

The resulting entry will display the corresponding physical port (e.g., Gi1/0/12).


How to Clear and Refresh the ARP Cache

A host that changes its network interface card (NIC), a virtual machine migrated across subnets, or an IP address conflict can leave stale or invalid bindings in the ARP cache. Because the default aging timer is four hours, network administrators frequently need to flush entries manually to force immediate re-resolution.

Step 1: Clear Specific Entries (Recommended)

Flushing the entire ARP table causes the switch to send broadcast ARP requests for every destination, causing a brief spike in control-plane CPU and broadcast traffic. Whenever possible, clear only the affected host:

Switch# clear ip arp 10.10.20.15

Step 2: Clear an Interface or Subnet

If an entire subnet or link experienced an outage or addressing overhaul, clear entries scoped to that specific interface or SVI:

Switch# clear ip arp interface vlan 20
Switch# clear ip arp interface gigabitethernet 1/0/1

Step 3: Clear the Entire Cache (Global Flush)

To delete all dynamic ARP entries across all interfaces on the switch:

Switch# clear ip arp

Note: Static ARP entries defined manually in the configuration are not cleared by this command; they must be removed via global configuration mode using no arp <ip-address>.

Step 4: Verify Cache Renewal

After clearing the entry, initiate traffic to force the switch to repopulate the table, then check the table again:

Switch# ping 10.10.20.15
Switch# show ip arp 10.10.20.15

Cisco IOS / IOS-XE Command Reference Specification

This section provides a factual reference for syntax, command parameters, defaults, and privilege requirements based on Cisco IOS and Cisco IOS-XE technical documentation.

Command Syntax

show ip arp [vrf vrf-name] [interface-type interface-number] [ip-address] [mac-address]

Parameter Definitions

  • vrf vrf-name: (Optional) Specifies the Virtual Routing and Forwarding (VRF) instance to inspect. If omitted, the default global routing table is used.
  • interface-type interface-number: (Optional) Narrows the output to a specific interface or SVI (e.g., vlan 10, GigabitEthernet 1/0/1).
  • ip-address: (Optional) Specifies a 32-bit destination IPv4 address in dotted-decimal format.
  • mac-address: (Optional) Specifies a 48-bit hardware address in hhhh.hhhh.hhhh format.

Command Modes

  • User EXEC (>): Privilege level 1. Can view global ARP entries.
  • Privileged EXEC (#): Privilege level 15. Required for clearing entries (clear ip arp) or querying VRF instances.

Default Values and Timers

  • Default ARP Timeout: 14400 seconds (240 minutes / 4 hours).
  • Timeout Configuration: Configured per interface in interface configuration mode using the arp timeout <seconds> command (range: 0 to 2147483647 seconds). Setting the value to 0 disables aging.
  • Refresh Threshold: Cisco IOS initiates proactive unicast ARP refresh requests when an entry reaches 75% of its timeout value, provided traffic to that host is actively traversing the switch.
  • Platform Availability: Available across all Cisco Catalyst switches (Catalyst 2960, 3560, 3850, 9200, 9300, 9400, 9500, 9600 series) running Cisco IOS or IOS-XE.
  • NX-OS Equivalent: On Cisco Nexus switches running Cisco NX-OS, the equivalent command is show ip arp [detail] [vrf {vrf-name | all}].

Checking the ARP table on a Cisco switch is an indispensable technique for mapping Layer 3 IP configurations to physical Layer 2 network interfaces. When troubleshooting, verify first whether the switch operates at Layer 2 or Layer 3, use filtering switches and pipe commands to isolate specific endpoints, and selectively clear individual stale entries with clear ip arp <ip-address> to resolve addressing discrepancies without creating network-wide broadcast storms.

Please follow and like us:
Last modified: November 16, 2026

Author

Comments

Write a Reply or Comment

Your email address will not be published.