clear ip route

Last Updated : Nov 06, 2012 |

Deletes all the dynamic routing entries from the routing table.

Syntax

clear ip route {all | ip_addr [ip_mask>

Parameters

Parameter

Description

Possible Values

Default Value

all

Keyword specifying to clear the entire routing table

ip_addr

The IP address of a specific dynamic routing entry to clear

ip_mask

The IP mask of a specific dynamic routing subnet to clear

User level

read-write

Context

general

Examples

To clear the entire routing table:

Gxxx-001(super)# clear ip route all

To clear the routing entry of IP address 192.168.49.1 with IP mask of 255.255.255.0:

Gxxx-001(super)# clear ip route 192.168.49.1 255.255.255.0