Celestica Documentation Portal

Find your product documents here

clear ndp

Clears the IPv6 ND neighbor cache by Neighbour IPv6 Address or L3 Interface or VRF.

Syntaxclear ndp [ vrf <vrfname>] [ <interfacename> | <ipv6address> ]
Command modeEXEC
Parameters
  • vrfname – Name of the VRF. Accepts a string of maximum 32 characters.

  • interfacename– Name of the L3 Interface, such as Ethernet0, PortChannel10, Loopback2, Vlan100 or Management0.

  • ipv6address – IPv6 Neighbor Address.

Usage
  • <vrfname> is optional. If <vrfname> is not given, all the VRFs Neighbor Cache is retrieved.

  • <interfacename> is optional. If <interfacename> is not given, all Neighbor Cache entries learnt on L3 Interfaces is retrieved.

  • <ipv6address> is optional. By default, all Neighbors are retrieved if not specified.

Supported Releases1.1.0 or later
Click command sonic-clear ndp [<ipv6address>]
Example
sonic# show ndp vrf Vrf-101
Address                   MacAddress         Iface      Vlan  Status
------------------------  -----------------  -------  ------  --------
2023::b:2                 -                  -           101  FAILED
2023::6:2                 00:00:23:88:87:47  -           101  STALE
2023::1:2                 00:00:23:88:87:42  -           101  STALE
2023::8:2                 00:00:23:88:87:49  -           101  STALE
fe80::200:23ff:fe88:8738  00:00:23:88:87:38  -           101  STALE
2023::3:2                 00:00:23:88:87:44  -           101  STALE
2023::a:2                 00:00:23:88:87:4b  -           101  STALE
2023::5:2                 00:00:23:88:87:46  -           101  STALE
2023::7:2                 00:00:23:88:87:48  -           101  STALE
2023::2:2                 00:00:23:88:87:43  -           101  STALE
2023::9:2                 00:00:23:88:87:4a  -           101  STALE
2023::4:2                 00:00:23:88:87:45  -           101  STALE
Total number of entries 12
sonic# clear ndp vrf Vrf-101
sonic# show ndp vrf Vrf-101
Address    MacAddress    Iface    Vlan    Status
---------  ------------  -------  ------  --------
Total number of entries 0
sonic#