Clearing and Reinstalling IP Routes
You can clear the specified routing entries from the routing table. You must specify the IP address prefix and the mask of the IP address prefix to clear specific routes. You can later reinstall the routes you have cleared.
To clear all dynamic routes from the routing table:
- Issue the clear ip routes command
with an asterisk (*) in Privileged Exec
mode.host1#clear ip routes *
To enable the owning protocols (BGP, IS-IS, OSPF) to reinstall routes removed from the IP routing table by the clear ip routes command:
- Issue the ip refresh-route command
in Privileged Exec mode.host1#ip refresh-route
Hide Navigation Pane
Show Navigation Pane
SHA1