Specifications
IP Switching Commands
clear ip cache
ISW-16
Cisco IOS IP Switching Command Reference
May 2008
clear ip cache
To delete entries in the routing table cache used to fast switch IP traffic, use the clear ip cache command
in privileged EXEC mode.
clear ip cache [prefix mask]
Syntax Description
Command Modes Privileged EXEC
Command History
Usage Guidelines Use this command to clear routes from the routing table cache. You can remove all entries in the routing
cache or you can remove only those entries associated with a specified prefix and mask.
Examples The following command shows how to delete the all of the entries in the routing table cache:
Router# clear ip cache
The following command show how to delete entries in the router table associated with the prefix and
mask 192.168.32.0 255.255.255.0:
Router# clear ip cache 192.168.32.0 255.255.255.0
Related Commands
prefix mask (Optional) Deletes only the entries in the cache that match the prefix and
mask combination.
Release Modification
10.0 This command was introduced.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX This command is supported in the Cisco IOS Release 12.2SX train. Support
in a specific 12.2SX release of this train depends on your feature set,
platform, and platform hardware.
Command Description
ip route-cache Controls the use of high-speed switching caches for IP routing.
show ip cache Displays the routing table cache used to fast switch IP traffic.