130
C
7: IP S
HAPTER
clear ip route
C
ERVICES
OMMANDS
See Also
clear ip dns domain on page 129
display ip dns on page 144
set ip dns on page 164
set ip dns domain on page 165
set ip dns server on page 166
Removes a route from the IP route table.
Syntax —
clear ip route {default | ip-addr mask |
ip-addr/mask-length} gateway
— Default route.
default
default is an alias for IP address 0.0.0.0/0.
ip-addr mask
destination, in dotted decimal notation (for example, 10.10.10.10
255.255.255.0).
ip-addr/mask-length
format (for example, 10.10.10.10/24).
gateway
— IP address, DNS hostname, or alias of the next-hop router.
Defaults — None.
Access — Enabled.
History — Introduced in MSS Version 3.0.
Examples — The following command removes the route to destination
10.10.10.68/24 through gateway router 10.10.10.1:
WX1200# clear ip route 10.10.10.68/24 10.10.10.1
success: change accepted.
See Also
display ip route on page 146
set ip route on page 167
— IP address and subnet mask for the route
— IP address and subnet mask length in CIDR