Specifications
Chapter3 Miscellaneous Features
Configuring Dynamic Host Configuration Protocol
3-2
Cisco 1700 Series Router Software Configuration Guide
78-5407-03
Perform the following tasks to configure DHCP. Begin in global configuration
mode.
Configuration Example
In the following example, three DHCP address pools are created: one in network
172.16.0.0, one in subnetwork 172.16.1.0, and one in subnetwork 172.16.2.0.
Attributes from network 172.16.0.0, such as the domain name, Domain Name
System (DNS) server, NetBIOS name server, and NetBIOS node type, are
inherited in subnetworks 172.16.1.0 and 172.16.2.0. In each pool, clients are
granted 30-day leases and all addresses in each subnetwork, except the excluded
addresses, are available to the DHCP server for assigning to clients.
ip dhcp database ftp://user:password@172.16.4.253/router-dhcp
write-delay 120
ip dhcp excluded-address 172.16.1.100 172.16.1.103
ip dhcp excluded-address 172.16.2.100 172.16.2.103
!
ip dhcp pool 0
network 172.16.0.0 /16
domain-name cisco.com
Command Task
Step1
ip dhcp excluded-address low-ip-address
high-ip-address
Prevent DHCP from assigning one or more IP
addresses to potential clients.
Step2
ip dhcp pool name Enter DHCP configuration mode, and create a
pool of IP addresses that can be assigned to
DHCP clients.
Step3
network address subnet-mask Specify a range of IP addresses that can be
assigned to the DHCP clients.
Step4
default-router ip-address Specify the default router.
Step5
domain-name domain name Specify the domain name.
Step6
dns-server ip-address Specify the DNS server.
Step7
netbios-name-server ip-address Specify the NetBIOS name server.
Step8
netbios-node-type node-type Specify the NetBIOS node type.
Step9
lease days
lease infinite
Specify the duration of the lease.