|
Command or Action |
Purpose |
|
enable
Example:
Device> enable
|
Enables privileged EXEC mode.
-
Enter your password if prompted.
|
|
configure terminal
Example:
Device# configure terminal
|
Enters global configuration mode. |
|
ip dhcp pool name
Example:
Device(config)# ip dhcp pool 1
|
Creates a name for the DHCP server address pool and enters DHCP pool configuration mode. |
|
utilization mark high percentage-number [log]
Example:
Device(dhcp-config)# utilization mark high 80 log
|
(Optional) Configures the high utilization mark of the current address pool size.
-
The log keyword enables logging of a system message. A system message is generated for a DHCP pool when the pool utilization exceeds the configured high utilization threshold.
|
|
utilization mark low percentage-number [log]
Example:
Device(dhcp-config)# utilization mark low 70 log
|
(Optional) Configures the low utilization mark of the current address pool size.
-
The log keyword enables logging of a system message. A system message is generated for a DHCP pool when the pool utilization falls below the configured low utilization threshold.
|
|
network network-number [mask | /prefix-length]
Example:
Device(dhcp-config)# network 172.16.0.0 /16
|
Specifies the subnet network number and mask of the primary DHCP address pool. |
|
domain-name domain
Example:
Device(dhcp-config)# domain-name cisco.com
|
Specifies the domain name for the client. |
|
dns-server address [address2 ... address8]
Example:
Device(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.
-
Servers should be listed in the order of preference.
|
|
bootfile filename
Example:
Device(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 image that the client loads.
|
|
next-server address [address2 ... address8]
Example:
Device(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.
-
One IP address is required; however, you can specify up to eight IP addresses in one command line.
-
If multiple servers are specified, DHCP assigns the servers to clients in a 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:
Device(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:
Device(dhcp-config)# netbios-node-type h-node
|
(Optional) Specifies the NetBIOS node type for a Microsoft DHCP client. |
|
default-router address [address2 ... address8]
Example:
Device(dhcp-config)# default-router 172.16.1.100 172.16.1.101
|
(Optional) Specifies the IP address of the default device 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 devices are listed in order of preference; that is, address is the most preferred device, address2 is the next most preferred device, and so on.
-
When a DHCP client requests for an IP address, the device--acting as a DHCP server--accesses the default device list to select another device that the DHCP client uses as the first hop for forwarding messages. After a DHCP client has booted, the client begins sending packets to its default device.
|
|
option code [instance number] {ascii string | hex string | ip-address}
Example:
Device(dhcp-config)# option 19 hex 01
|
(Optional) Configures DHCP server options. |
|
lease {days [hours] [minutes] | infinite}
Example:
Device(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.
|
|
network network-number [mask | /prefix-length] [secondary]
Example:
Device(dhcp-config)# network 10.10.0.0 255.255.0.0 secondary
|
(Optional) Specifies the network number and mask of a secondary DHCP server address pool.
-
Any number of secondary subnets can be added to a DHCP server address pool.
-
During execution of this command, the configuration mode changes to DHCP pool secondary subnet configuration mode, which is identified by (config-dhcp-subnet-secondary)# prompt. In this mode, the administrator can configure a default device list that is specific to the subnet.
-
See Troubleshooting Tips section if you are using secondary IP addresses under a loopback interface with DHCP secondary subnets.
|
|
override default-router address [address2 ... address8]
Example:
Device(config-dhcp-subnet-secondary)# override default-router 10.10.0.100 10.10.0.101
|
(Optional) Specifies the default device list that is used when an IP address is assigned to a DHCP client from a particular secondary subnet.
-
If the subnet-specific override value is configured, this override value is used when assigning an IP address from the subnet; the network-wide default device list is used only to set the gateway device for the primary subnet.
-
If this subnet-specific override value is not configured, the network-wide default device list is used when assigning an IP address from the subnet.
-
See Example: Configuring a DHCP Address Pool with Multiple Disjoint Subnets section for a sample configuration.
|
|
override utilization high percentage-number
Example:
Device(config-dhcp-subnet-secondary)# override utilization high 60
|
(Optional) Sets the high utilization mark of the subnet size.
-
This command overrides the global default setting specified by the utilization mark high command.
|
|
override utilization low percentage-number
Example:
Device(config-dhcp-subnet-secondary)# override utilization low 40
|
(Optional) Sets the low utilization mark of the subnet size.
-
This command overrides the global default setting specified by the utilization mark low command.
|
|
end
Example:
Device(config-dhcp-subnet-secondary)# end
|
Returns to privileged EXEC mode. |