Use this command to delete switch IP routing table entries.
destination | Specifies the IPv4 or IPv6 address of the network or host to be cleared. |
default | Specifies the default gateway. |
gateway | Specifies the IPv4 or IPv6 address of the next hop router. |
interface | Specifies an IP interface. For example: vlan.0.1 |
mask | (Optional) Specifies a netmask. |
All command modes.
The clear ip route command is used to remove a static route that is not being used to route transit frames. Use the no version of ip route to remove static routes that are used to route transit frames.
This example shows how to clear the default gateway:
System(rw)->clear ip route default