Command:

ip default-network


Mode:

Router(config)#

Syntax:

ip default-network network-number

no ip default-network network-number

 

Syntax Description:

network-number

Number of the network


Command Description:

To select a network as a candidate route for computing the gateway of last resort, use the ip default-network global configuration command. To remove a route, use the no form of this command.

The Cisco IOS software uses both administrative distance and metric information to determine the default route. Multiple ip default-network commands can be given. All candidate default routes, both static (that is, flagged by ip default-network) and dynamic, appear in the routing table preceded by an asterisk.

If the IP routing table indicates that the specified network number is subnetted and a non-zero subnet number is specified, then the system will automatically configure a static summary route. This static summary route is configured instead of a default network. The effect of the static summary route is to cause traffic destined for subnets that are not explicitly listed in the IP routing table to be routed using the specified subnet.


Example:

The following example defines a static route to network 10.0.0.0 as the static default route:

Router(config)#ip route 10.0.0.0 255.0.0.0 131.108.3.4
Router(config)#ip default-network 10.0.0.0

In the preceeding example, the ip default-network command will only be in effect if network 10.0.0.0 exists in the router's routing table.


Misconceptions:

None

Related Commands:
show ip route

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)