Clearing IP routes

The entire route table or specific individual routes can be cleared, if required.

When an interface subnet route with an interface address that directly matches a host route learned from a neighboring device is configured and subsequently removed, the clear ip route command should be used so that the learned route is updated in the Routing and Hardware Forwarding table.

To clear all routes from the IP route table, enter the following command.

device# clear ip route

To clear route 10.157.22.0/24 from the IP routing table, enter the clear ip route command.

device# clear ip route 10.157.22.0/24