ip default-network

Configures a default network route.
Syntax
ip default-network ip-address ip-mask
no ip default-network ip-address ip-mask
Command Default

The default network is not configured.

Parameters
ip-address ip-mask
Specifies the IP address of the network followed by the network mask.
Modes

Global configuration mode

Usage Guidelines

The Layer 3 switch enables you to specify a candidate default route without the need to specify the next hop gateway. If the IP route table does not contain an explicit default route (for example, 0.0.0.0/0) or propagate an explicit default route through routing protocols, the software can use the default network route as a default route instead.

When the software uses the default network route, it also uses the default network route's next hop gateway as the gateway of last resort. Configuring the default network route is especially useful in environments where network topology changes can make the next hop gateway unreachable.

You can configure up to four default network routes.

The no form of the command removes the default network route.

Examples

The following example configures a default IP network route.

device# configure terminal
device(config)# ip default-network 10.157.22.0/64
device(config)# write memory