C
OMMAND
L
INE
I
NTERFACE
4-164
• This command is valid for DHCP network address pools only. If the
mask is not specified, the class A, B, or C natural mask is used (see
page3-276) . The DHCP server assumes that all host addresses are
available. You can exclude subsets of the address space by using the ip
dhcp excluded-address command.
Example

default-router

Use this command to specify default routers for a DHCP pool. Use the no
form to remove the default routers.
Syntax
default-router address1 [address2]
no default-router
address1 - Specifies the IP address of the primary router.
address2 - Specifies the IP address of an alternate router.
Default Setting
None
Command Mode
DHCP Pool Configuration
Usage Guidelines
The IP address of the router should be on the same subnet as the
client. You can specify up to two routers. Routers are listed in order of
preference (starting with address1 as the most preferred router).
Example
Console(config-dhcp)#network 10.1.0.0 255.255.255.0
Console(config-dhcp)#
Console(config-dhcp)#default-router 10.1.0.54 10.1.0.64
Console(config-dhcp)#