C
HAPTER
42
| DHCP Commands
DHCP Server
– 986 –
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)#
dns-server This command specifies the Domain Name System (DNS) IP servers
available to a DHCP client. Use the no form to remove the DNS server list.
SYNTAX
dns-server address1 [address2]
no dns-server
address1 - Specifies the IP address of the primary DNS server.
address2 - Specifies the IP address of the alternate DNS server.
DEFAULT SETTING
None
COMMAND MODE
DHCP Pool Configuration
USAGE GUIDELINES
â—† If DNS IP servers are not configured for a DHCP client, the client cannot
correlate host names to IP addresses.