59-13
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 59 Configuring the Cisco IOS DHCP Server
Configuring DHCP Address Pools
Configuring a DHCP Address Pool with Secondary Subnets
For any DHCP pool, you can configure a primary subnet and any number of secondary subnets.
Step 15
Switch(dhcp-config)# lease {days [hours
[minutes]] | infinite}
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.
Step 16
Switch(dhcp-config)# end
Exits DHCP configuration mode and returns to privileged EXEC
mode.
Command or Action Purpose
Command or Action Purpose
Step 1
Switch> enable
Enables privileged EXEC mode.
• Enter your password if prompted.
Step 2
Switch# configure terminal
Enters global configuration mode.
Step 3
Switch(config)# ip dhcp pool name
Assigns a name to a DHCP pool and enters DHCP configuration
mode.
Step 4
Switch(dhcp-config)# utilization mark
high percentage-number [log]
(Optional) Configures the high utilization mark of the current
address pool size.
• The log keyword enables the logging of a system message. A
system message will be generated for a DHCP pool when the
pool utilization exceeds the configured high utilization
threshold.
Step 5
Switch(dhcp-config)# utilization mark low
percentage-number [log]
(Optional) Configures the low utilization mark of the current
address pool size.
• The log keyword enables the logging of a system message. A
system message will be generated for a DHCP pool when the
pool utilization falls below the configured low utilization
threshold.
Step 6
Switch(dhcp-config)# network
network-number [mask | /prefix-length]
[secondary]
Specifies the subnet network number and mask of the DHCP
address pool.
Step 7
Switch(dhcp-config)# domain-name domain
Specifies the domain name for the client.
Step 8
Switch(dhcp-config)# dns-server address
[address2 ... address8]
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 order of preference.
Step 9
Switch(dhcp-config)# bootfile filename
(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 that the client
uses to load.