DGS-6604
mm
default-router
CLI Reference Guide
155
default-router
This command specifies the default router list for a DHCP client. Use the no form
of this command to remove the default router list.
default-router
IP-ADDRESS
no default-router [
IP-ADDRESS
]
Default
None
Command Mode
DHCP pool configuration
Usage Guideline
The IP address of the router should be on the same subnet as the client subnet.
If the number of servers is more than one, then execute this command multiple
times with different server IP addresses. Routers are listed in order of preference
(address1 is the most preferred router, address2 is the next most preferred
router, and so on).
Example
This example shows how to specify 10.1.1.1 as the IP address of default-router
in DHCP address pool.
Syntax Description
IP-ADDRESS
Specifies the IP address of the default-router to DHCP clients.
switch# configure terminal
switch(config)# ip dhcp pool pool1
switch(config-dhcp)# default-router 10.1.1.1