Deleting Default IP Routes

You can use the TCP/IP ROUTE command to delete default routes by supplying the DELETE DEFAULT options and all required default route attributes. In IPv4 networks, when an assigned default route is to be deleted, the MASK/network-prefix length attribute must also be provided. By default, only inactive default routes can be deleted. Inactive default routes are those that currently have no dialogs associated with them. Use the NOW attribute to delete a default route that has open dialogs associated with it.

To delete a default IP route, enter a command similar to one of the following:

NW TCPIP ROUTE DELETE DEFAULT <ip address 1> MASK <ip address 2> [PREF] <preference>

NW TCPIP ROUTE DELETE DEFAULT <ip address 1> / <network-prefix length> [PREF]<preference> NOW

NW TCPIP ROUTE DELETE DEFAULT <ip address 1> [PREF] <preference>

The variables are described as follows.

Variable

Description

<ip address 1>

The IP address of the default next-hop router for destinations which there is no "specific" route.

<ip address 2>

(Optional; used for IPv4 addressing only) The mask that, when applied to the <ip address> attribute, yields the local subnet/network/supernet ID for which this is a default route.

<network-prefix length>

(Optional) The length of the classless network prefix that when applied to the ip address yields the local subnet/network/supernet ID for which this is a default route.

<preference>

Used to define the order of alternate, backup default routes. Each alternate default route must have a unique preference value. A preference value can range from 1 to 255.

Examples

Delete the default route for network 192.39.10.0.

NW TCPIP ROUTE DELETE DEFAULT 192.39.10.3 MASK 255.255.255.224 PREF 1

or

NW TCPIP ROUTE DELETE DEFAULT 192.39.10.3 /24 PREF 1

Delete the system default route.

NW TCPIP ROUTE DELETE DEFAULT 192.39.20.2 PREF 1

Delete a previously defined static IPv6 route.

NW TCPIP ROUTE DELETE DEFAULT 090F:0:0:0:9F:FF:89:98 PREF 1