Step 1 |
enable
Example:
|
Enables
privileged EXEC mode.
|
Step 2 |
configure
terminal
Example:
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3 |
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.
|
Step 4 |
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.
|
Step 5 |
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.
|
Step 6 |
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.
|
Step 7 |
domain-name
domain
Example:
Device(dhcp-config)# domain-name cisco.com
|
Specifies
the domain name for the client.
|
Step 8 |
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.
|
Step 9 |
bootfile
filename
Example:
Device(dhcp-config)# bootfile xllboot
|
(Optional)
Specifies the name of the default boot image for a DHCP client.
|
Step 10 |
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.
|
Step 11 |
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.
|
Step 12 |
netbios-node-type
type
Example:
Device(dhcp-config)# netbios-node-type h-node
|
(Optional)
Specifies the NetBIOS node type for a Microsoft DHCP client.
|
Step 13 |
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.
|
Step 14 |
option
code
[instance
number]
{ascii
string |
hex
string |
ip-address}
Example:
Device(dhcp-config)# option 19 hex 01
|
(Optional)
Configures DHCP server options.
|
Step 15 |
lease {days [hours]
[minutes] |
infinite}
Example:
Device(dhcp-config)# lease 30
|
(Optional)
Specifies the duration of the lease.
|
Step 16 |
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.
|
Step 17 |
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.
|
Step 18 |
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.
|
Step 19 |
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.
|
Step 20 |
end
Example:
Device(config-dhcp-subnet-secondary)# end
|
Returns to
privileged EXEC mode.
|