|
Command or Action |
Purpose |
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
-
Enter your password if prompted.
|
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode. |
|
ip dhcp pool name
Example:
Router(config)# ip dhcp pool 1
|
Creates a name for the DHCP server address pool and enters DHCP pool configuration mode. |
|
network network-number [mask | / prefix-length]
Example:
Router(dhcp-config)# network 172.16.0.0 /16
|
Specifies the subnet network number and mask of the DHCP address pool. |
|
domain-name domain
Example:
Router(dhcp-config)# domain-name cisco.com
|
Specifies the domain name for the client. |
|
dns-server address [address2 ... address8]
Example:
Router(dhcp-config)# dns server 172.16.1.103 172.16.2.103
|
Specifies the IP address of a DNS server that is available to a DHCP client.
-
One IP address is required; however, you can specify up to eight IP addresses in one command line.
-
Servers should be listed in order of preference.
|
|
bootfile filename
Example:
Router(dhcp-config)# bootfile xllboot
|
(Optional) Specifies the name of the default boot image for a DHCP client.
-
The boot file is used to store the boot image for the client. The boot image is generally the operating system the client uses to load.
|
|
next-server address [address2 ... address8]
Example:
Router(dhcp-config)# next-server 172.17.1.103 172.17.2.103
|
(Optional) Configures the next server in the boot process of a DHCP client.
-
If multiple servers are specified, DHCP assigns them to clients in round-robin order. The first client gets address 1, the next client gets address 2, and so on.
-
If this command is not configured, DHCP uses the server specified by the ip helper address command as the boot server.
|
|
netbios-name-server address [address2 ... address8]
Example:
Router(dhcp-config)# netbios-name-server 172.16.1.103 172.16.2.103
|
(Optional) Specifies the NetBIOS Windows Internet Naming Service (WINS) server that is available to a Microsoft DHCP client.
-
One address is required; however, you can specify up to eight addresses in one command line.
-
Servers should be listed in order of preference.
|
|
netbios-node-type type
Example:
Router(dhcp-config)# netbios-node-type h-node
|
(Optional) Specifies the NetBIOS node type for a Microsoft DHCP client. |
|
default-router address [address2 ... address8]
Example:
Router(dhcp-config)# default-router 172.16.1.100 172.16.1.101
|
(Optional) Specifies the IP address of the default router for a DHCP client.
-
The IP address should be on the same subnet as the client.
-
One IP address is required; however, you can specify a up to eight IP addresses in one command line. These default routers are listed in order of preference; that is, address is the most preferred router, address2 is the next most preferred router, and so on.
-
When a DHCP client requests an IP address, the router--acting as a DHCP server--accesses the default router list to select another router that the DHCP client is to use as the first hop for forwarding messages. After a DHCP client has booted, the client begins sending packets to its default router.
|
|
option code [instance number] {ascii string | hex string | ip-address}
Example:
Router(dhcp-config)# option 19 hex 01
|
(Optional) Configures DHCP server options. |
|
lease {days [hours] [minutes]| infinite}
Example:
Router(dhcp-config)# lease 30
|
(Optional) Specifies the duration of the lease.
-
The default is a one-day lease.
-
The infinite keyword specifies that the duration of the lease is unlimited.
|
|
end
Example:
Router(config-dhcp-subnet-secondary)# end
|
Returns to global configuration mode. |