clear ip route

Use this command to delete switch IP routing table entries.

Syntax

clear ip route {destination | default} {gateway | interface} [mask]

Parameters

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.

Mode

All command modes.

Usage

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.

Example

This example shows how to clear the default gateway:

System(rw)->clear ip route default