Celestica Documentation Portal

Find your product documents here

clear arp

Clears the IPv4 ARP neighbor cache by Neighbour IPv4 Address or L3 Interface or VRF.

Syntaxclear arp [ vrf <vrfname>] [ <interfacename> | <ipv4address> ]
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.

  • ipv4address – IPv4 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.

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

Supported Releases1.1.0 or later
Click command sonic-clear arp [<ipv4address>]
Example
sonic# show arp vrf Vrf-101
Address         MacAddress         Iface      Vlan  Status
--------------  -----------------  -------  ------  --------
101.101.101.8   00:00:23:88:87:33  -           101  STALE
101.101.101.11  00:00:23:88:87:36  -           101  STALE
101.101.101.10  00:00:23:88:87:35  -           101  STALE
101.101.101.12  00:00:23:88:87:37  -           101  STALE
101.101.101.3   00:00:23:88:87:2e  -           101  STALE
101.101.101.2   00:00:00:0f:d5:29  -           101  STALE
101.101.101.5   00:00:23:88:87:30  -           101  STALE
101.101.101.4   00:00:23:88:87:2f  -           101  STALE
101.101.101.7   00:00:23:88:87:32  -           101  STALE
101.101.101.6   00:00:23:88:87:31  -           101  STALE
101.101.101.9   00:00:23:88:87:34  -           101  STALE
Total number of entries 11
sonic# clear arp vrf Vrf-101
sonic# show arp vrf Vrf-101
Address    MacAddress    Iface    Vlan    Status
---------  ------------  -------  ------  --------
Total number of entries 0
sonic#