The DELETE option of the TCP/IP ROUTE command enables you to manually delete a route from the routing tables. By default, only inactive routes can be deleted. Inactive routes are those that currently have no dialogs associated with them. The NOW attribute can be used to delete a route that has open dialogs associated with it. Both specific and default routes can be deleted. All routes satisfying the specified criteria are deleted.
To delete a route, enter a command similar to one of the following:
NW TCPIP ROUTE DELETE <ip address 1> MASK <ip address 2> VIA <ip address 3> [PREF] <preference>
NW TCPIP ROUTE DELETE <ip address 1> / <network-prefix length> VIA <ip address 3> [PREF] <preference> NOW
NW TCPIP ROUTE DELETE <ip address 1> VIA <ip address 3> [PREF] <preference>
The variables are described as follows.
Variable |
Description |
---|---|
<ip address 1> |
The IP address of the destination host/subnet/network/supernet. |
<ip address 2> |
(Optional; used for IPv4 addressing only) The mask of the remote subnet/network/supernet. |
<network-prefix length> |
(Optional) The length of the classless network-prefix that when applied to the ip address yields the subnet/network/supernet. |
<ip address 3> |
The IP address of the next-hop router along the path to the destination. |
<preference > |
(Optional) Identifies alternate backup routes to the destination. The preference value identifies the backup order that is used when a lower preference next-hop fails. Multiple routes with the same preference value represent a parallel route that can be used for dialog load balancing. A preference value can range from 1 to 255. |
IPv4 Examples
Delete the route to 192.39.50.2.
NW TCPIP ROUTE DELETE 192.39.50.2 VIA 192.39.10.3
Delete the route to 192.39.50.2 even if it is in use.
NW TCPIP ROUTE DELETE 192.39.50.2 VIA 192.39.10.3 NOW
IPv6 Example
NW TCPIP ROUTE DELETE 090F:0:0:0:9F:FF:89:98/128 VIA 090F:0:0:0:9F:89:99