Issue the TCP/IP ROUTE ADD command with the ADD and DEFAULT options to configure a default next-hop router for those TCP/IP destinations that do not have a
-
Statically defined route
-
Dynamically discovered route (IPv4 networks only)
Default routes are taken in the absence of a "specific" route to the destination. There are two types; assigned default routes and system default routes. When an assigned default route is configured, that route is used before searching for a "system" default route to the destination.
Configure default routes by supplying the next-hop router and a preference as required attributes. For IPv4 networks only, the optional MASK (network-prefix length) attribute provides a mechanism to configure an assigned default route. If the MASK (network-prefix length) attribute is not present, a "system" default route is configured.
You can configure multiple default routes associated with a common local subnet/network/supernet for resiliency purposes. While there can only be one primary default route at any time, multiple alternate default routes can be configured as long as each has a unique preference value. As with the assigned default routes, only one "system" default route can be active at a time. Multiple alternate system default routes can also be configured as long as each has a unique preference value. Alternate default routes (assigned and system) are ordered and used according to their preference values.
Enter the command in one of the following formats:
Supported for IPv4 Only:
NW TCPIP ROUTE ADD DEFAULT <ip address 1> MASK <ip address 2> [PREF] <preference>
Supported for IPv4 and IPv6:
NW TCPIP ROUTE ADD DEFAULT <ip address 1> / <network-prefix length> [PREF] <preference>
NW TCPIP ROUTE ADD DEFAULT <ip address 1> [PREF] <preference>
Variables
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; IPv4 only) The mask that, when applied to the <ip address> attribute, yields the local subnet/network/supernet 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 subnet/network/supernet for which this is a default route. |
<preference> |
Identifies the rank it has against other default routes identified. You must identify a unique value for <preference>. This value must be between 0 and 255. A value of 0 indicates the preferred path you want to use routing IP traffic. |
IPv4 Examples
Add a default route for locally attached network 192.39.10.0.
NW TCPIP ROUTE ADD DEFAULT 192.39.10.3 MASK 255.255.255.0 PREF 1
or
NW TCPIP ROUTE ADD DEFAULT 192.39.10.3 /24 PREF 1
Add a system default route.
NW TCPIP ROUTE ADD DEFAULT 192.39.20.2 PREF 1
IPv6 Example
Add a system default route.
NW TCPIP ROUTE ADD DEFAULT 090F:0:0:0:9F:FF:89:98 PREF 1