Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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

    Published: 2014-08-13