clear arp-cache

Last Updated : Oct 20, 2015 |

Deletes all dynamic entries from the ARP cache.

Syntax

clear arp-cache [interface | vlan_id | ip_address[mask]]

Parameters

Parameter

Description

Possible Values

Default Value

interface

The interface name for which to delete entries

vlan_id

The VLAN ID for which to delete entries

1-4090

ip_address

The host IP address to clear

mask

The IP mask of the subnet to clear

User level

read-write

Context

general

Examples

To flush all ARP entries:

Gxxx-001(super)# clear arp-cache
Flushing all arp entries
Flushed 22 ARP entries.

To flush ARP entries for an interface named FastEthernet 10/3:

Gxxx-001(super)# clear arp-cache fastethernet 10/3
Flushing ARP cache entries on ifName fastethernet 10/3
Flushed 1 ARP entries.

To flush ARP entries for one host address:

Gxxx-001(super)# clear arp-cache 156.16.11.32
Flushing ARP cache entry of host 156.16.11.32
Flushed 0 ARP entries.

To flush a range of ARP entries belonging to one subnet:

Gxxx-001(super)# clear arp-cache 156.3.2.33 255.255.255.0
Flushing ARP cache entries in the range [156.3.2.33, 255.255.255.0]
Flushed 0 ARP entries.