clear ip route

Clears a specified route or all IP routes in the IP routing tables.

Syntax

clear ip route { A.B.C.D | A.B.C.D/M } [ vrf vrf-name ]
clear ip route all [ vrf vrf-name ] ]
clear ip route slot line-card-number [ A.B.C.D | A.B.C.D/M ] [ vrf vrf-name ]

Parameters

A.B.C.D
Specifies an IPv4 address.
A.B.C.D/M
Specifies an IPv4 address and mask.
vrf vrf-name
Specifies a VRF instance from which the user is currently retrieving routes.
all
Specifies all routes.
slot line-card-number
Specifies a line card.

Modes

Privileged EXEC mode

Examples

The following example clears the IP route specified by IP address 192.158.1.1/24.

device# clear ip route 192.158.1.1/24