Clearing the Routing Table

For IPv4 networks, use the CLEAR option on the TCP/IP ROUTE command to clear the routing table. This option enables you to clear (delete) all dynamically discovered and/or learned routes from the routing table including routes learned by the Routing Information Protocol (RIP), the Internet Control Message Protocol (ICMP), and the Neighbor Discovery Protocol. Routes that are statically (manually) configured and in‑use routes with active dialogs are not cleared.

For both IPv4 and IPv6 networks, you can clear all routes in the routing table by entering the TCP/IP ROUTE command with the CLEAR and the NOW options. The NOW option clears dynamic and static routes (manually configured routes) including those that have active dialogs associated with them.

Examples

Clear all dynamic routes not in use (IPv4 routes only).

NW TCPIP ROUTE CLEAR

If the preceding command is successful, you receive the following response:

ROUTE TABLE CLEARED EXCEPT FOR IN-USE AND STATICALLY ADDED ROUTES

Clear all routes.

NW TCPIP ROUTE CLEAR NOW

If the preceding command is successful, you receive the following response:

ROUTE TABLE CLEARED EXCEPT FOR STATICALLY ADDED ROUTES