clear ip nhrp
To clear all dynamic entries from the Next Hop Resolution Protocol (NHRP) cache, use the clear ip nhrp command in user EXEC or privileged EXEC mode.
clear ip nhrp [vrf {vrf-name | global}] [dest-ip-address [dest-mask] | tunnel number | counters [interface tunnel number] | stats [tunnel number [vrf {vrf-name | global}]]]
Syntax Description
vrf |
(Optional) Deletes entries from the NHRP cache for the specified virtual routing and forwarding (VRF) instance. |
vrf-name |
(Optional) Name of the VRF address family to which the command is applied. |
global |
(Optional) Specifies the global VRF instance. |
dest-ip-address |
(Optional) Destination IP address. Specifying this argument clears NHRP mapping entries for the specified destination IP address. |
dest-mask |
(Optional) Destination network mask. |
counters |
(Optional) Clears the NHRP counters. |
interface |
(Optional) Clears the NHRP mapping entries for all interfaces. |
tunnel number |
(Optional) Removes the specified interface from the NHRP cache. |
stats |
(Optional) Clears all IPv4 statistic information for all interfaces. |
Command Modes
User EXEC (>)
Privileged EXEC (#)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Denali 16.3.1 |
This command was introduced. |
Usage Guidelines
The clear ip nhrp command does not clear any static (configured) IP-to-NBMA address mappings from the NHRP cache.
Examples
The following example shows how to clear all dynamic entries from the NHRP cache for an interface:
Switch# clear ip nhrp