clear forwarding route

To clear forwarding information, use the clear forwarding route command.

clear forwarding { ip | ipv4 } route [ * | prefix ] [ vrf vrf-name ]

Syntax Description

ip
Clears an IPv4 route.
ipv4
Clears an IPv4 route.
*
(Optional) Clears all routes.
prefix
(Optional) IPv4 prefix. The IPv4 format is x.x.x.x/length.
vrf vrf-name
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Examples

This example shows how to clears a route from the FIB:

switch# clear forwarding ip 10.0.0.1/8