default-router

Use this command to assign a default router list to DHCP clients.

Syntax

default-router address [address2...address8]
no default-router address [address2...address8]

Parameters

address Specifies the IP address of a default router.
address2...
address8 (Optional) Specifies, in order of preference, up to 7 additional default router IP address(es).

Defaults

If address2...address8 is not specified, no additional addresses will be configured.

Mode

DHCP address pool, class, or host configuration command mode.

Usage

This command configures DHCP option 3.

The “no” form of this command deletes the default routers.

Example

This example shows how to assign a default router at 14.12.1.99 to the “localpool” address pool:

System(rw-config)->ip dhcp pool localpool
System(rw-config-dhcp-pool)->default-router 14.12.1.99