clear iparp

clear iparp {ip_addr {vr vr_name} | vlan vlan_name | vr vr_name} {refresh}

Description

Removes dynamic entries in the IP ARP table.

Syntax Description

ip_addr Specifies an IP address.
vlan_name Specifies a VLAN (Virtual LAN) name.
vr_name Specifies a Virtual Router (VR) or Virtual Router Forwarding instance (VRF) name.
refresh Refreshes the ARP cache and deletes the inactive entries.

Default

If you do not specify a VR or VRF, the current VR context is used.

Usage Guidelines

Permanent IP ARP entries are not affected.

This command is specific to a single VR or VRF, and it applies to the current VR context if you do not specify a VR or VRF.

Based on the attributes you specify, the refresh attribute refreshes and deletes the corresponding ARP entries as follows:

  • clear iparp refresh—Refreshes the entire ARP table and deletes all inactive entries.
  • clear iparp ip_addr refresh—Refreshes the specified IP address and deletes the IP ARP entry if the ARP request for IP address fails.
  • clear iparp vlan vlan_name refresh—Refreshes all IP ARP entries associated with the VLAN and deletes all inactive entries for the VLAN.
  • clear iparp vr vr_name refresh—Refreshes all IP ARP entries associated with the VR and deletes all inactive entries for the VR.

Example

The following example removes a dynamically created entry from the IP ARP table:

clear iparp 10.1.1.5

The following example refreshes the ARP entry by sending an ARP request for the IP address 10.1.1.5. If the ARP response is received, the dynamic entry is retained; otherwise, the dynamic entry is removed from the IP ARP table if the ARP response is not received.

clear iparp 10.1.1.5 refresh

History

This command was first available in ExtremeXOS 10.1.

The refresh keyword was added in ExtremeXOS 15.7.1.

Platform Availability

This command is available on the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X440-G2, X620, X690, X870 series switches.