clear neighbor-discovery cache

clear neighbor-discovery cache ipv6 {ipv6address {vr vr_name} | vlan vlan_name | vr vr_name} refresh

Description

Deletes a dynamic entry from the neighbor cache.

Syntax Description

vr_name Specifies a VR or VRF.
ipv6address Specifies an IPv6 address.
vlan_name Specifies an IPv6 configured VLAN (Virtual LAN).
refresh Refreshes the IPv6 neighbor discovery cache and deletes the inactive entries.

Default

N/A.

Usage Guidelines

This command clears dynamic entries from the neighbor cache. The vr option is used to specify the VR or VRF on which the operation is performed. When this option is omitted, it applies to current VR context.

When the ipv6address or vlan options are specified, only the entries with matching IPv6 addresses or that correspond to that VLAN are cleared.

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

  • clear neighbor-discovery cache refresh—Refreshes the entire IPv6 neighbor discovery cache and deletes all inactive entries.
  • clear neighbor-discovery cache ipv6address refresh—Refreshes the specified neighbor-discovery entry and deletes the neighbor-discovery entry if the neighbor solicitation for the IP address fails.
  • clear neighbor-discovery cache vlan vlan_name refresh—Refreshes all neighbor-discovery entries associated with the VLAN and deletes all inactive entries for the VLAN.
  • clear neighbor-discovery cache vr vr_name refresh—Refreshes all neighbor-discovery entries associated with the VR and deletes all inactive entries for the VR.

Example

The following example clears all entries from the neighbor cache:

clear neighbor-discovery cache

The following example refreshes all entries in the neighbor discovery cache and delete inactive entries if the neighbor solicitation fails:

clear neighbor-discovery cache refresh

History

This command was first available in ExtremeXOS 11.2.

The refresh option was added in ExtremeXOS 15.7.1.

Platform Availability

This command is available on the platforms listed for the IPv6 unicast routing feature in the ExtremeXOS 22.7 Feature License Requirements document.