clear arp

Removes entries from the Address Resolution Protocol (ARP) table.
Syntax
clear arp [ ethernet unit/slot/port | lag number | ve lag-id ] [ dynamic | pending ]
clear arp [ ip-address [ ip-mask ] | dynamic | mac-address mac-address-mask [ mac-address ] | pending ]
clear arp vrf vrf-name [ ethernet stack/slot/port | lag number ] [ dynamic | pending ]
clear arp vrf vrf-name [ ip-address [ ip-mask ] | dynamic | mac-address mac-address [ mac-address ] | pending ]
Parameters
ethernet unit/slot/port
Removes ARP entries for the specified Ethernet interface.
lag lag-id
Removes ARP entries for the LAG virtual interface.
ve ve-number
Removes ARP entries for the specified Virtual Ethernet (VE) interface.
dynamic
Clears dynamic ARP entries.
pending
Clears pending ARP entries.
ip-address
Clears only one ARP entry for the specified IPv4 address in the given VRF.
ip-mask
Clears all ARP entries matching the specified IP address and IP mask.
mac-address
Clears all ARP entries matching the MAC address.
mac-address-mask

Clears ARP arp entries matching the Mac address and MAC address mask.

vrf vrf-name
Removes ARP entries for the specified VRF instance.
Modes

Privileged EXEC mode

Usage Guidelines

The dynamic, pending, and ve keywords are not supported for Layer 2 switches.

If ARP entries are deleted from an Ethernet or LAG interface that is part of multiple VE interfaces, ARP entries are deleted for the port on all matching VE interfaces.

Examples

The following example deletes ARP entries learned on a specified Layer 3 VE interface.

device# clear arp ve 5

The following example deletes dynamic ARP entries learned on a specified Layer 3 VE interface.

device# clear arp ve 4 dynamic

The following example deletes pending ARP entries learned on a specified Layer 3 VE interface.

device# clear arp ve 3 pending

The following example deletes pending ARP entries learned on a specified Ethernet interface.

device# clear arp ethernet 1/2/1 pending

The following example deletes dynamic ARP entries learned on a specified Ethernet interface.

device# clear arp ethernet 1/2/1 dynamic

The following example deletes pending ARP entries learned on a specified LAG interface.

device# clear arp lag 3 pending

The following example deletes dynamic ARP entries learned on a specified LAG interface.

device# clear arp lag 2 dynamic

History
Release version Command history
08.0.95 The dynamic, pending, and ve keywords were added for Layer 3 routers.