clear ip route dhcp
To remove routes from the routing table added by the Cisco IOS Dynamic Host Configuration Protocol (DHCP) server and relay agent for the DHCP clients on unnumbered interfaces, use the clear ip route dhcp command in EXEC mode.
clear ip route [vrf vrf-name] dhcp [ip-address]
Syntax Description
vrf |
(Optional) VPN routing and forwarding instance (VRF). |
vrf-name |
(Optional) Name of the VRF. |
ip-address |
(Optional) Address about which routing information should be removed. |
Command Default
No default behavior or values.
Command Modes
EXEC
Command History
Release |
Modification |
---|---|
12.2 |
This command was introduced. |
12.2(33)SRA |
This command was integrated into Cisco IOS Release 12.2(33)SRA. |
12.2SX |
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware. |
Usage Guidelines
To remove information about global routes in the routing table, use the clear ip route dhcp command. To remove routes in the VRF routing table, use the clear ip route vrf vrf-name dhcp command.
Examples
The following example removes a route to network 10.5.5.217 from the routing table:
Router# clear ip route dhcp 10.5.5.217