default-router
This command specifies 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)#default-router 10.1.0.54 10.1.0.64
Console(config-dhcp)#
domain-name
This command specifies the domain name for a DHCP client. Use the
no
form to
remove the domain name.
Syntax
domain-name
domain
no domain-name
domain - Specifies the domain name of the client.
(Range: 1-128 characters)
Default Setting
None
Command Mode
DHCP Pool Configuration
Example
Console(config-dhcp)#domain-name sample.com
Console(config-dhcp)#
39-8
DHCP Commands
39