DHCP Configuration

Use the following commands to configure DHCP:

Command Description
ip address dhcp Acquires an IP address on an interface via DHCP
ip dhcp pool <pool-name> Configures a DHCP address pool on a DHCP server and enters DHCP Pool Configuration mode
domain-name <domain> Specifies the domain name for a DHCP client
network network-number [mask] Configures the network number and mask for a DHCP address pool primary or secondary subnet on a Cisco IOS DHCP server
ip dhcp excluded-address ip-address [last-ip-address] Specifies IP addresses that a DHCP server should not assign to DHCP clients
ip helper-address address Enables forwarding of UDP broadcasts, including BOOTP, received on an interface
default-router address [address2 ... address8] Specifies the default gateway for a DHCP client

The example below shows a basic DHCP configuration on a Cisco router:

NorthOfficeRoutertconfig &
Enter configuration commands, one per line. End with CNTL/Z.
NorthOfficeRouter(config)#ip dhcp pool Employees
NorthOfficeRouter (dhep-config) ¢network 192.168.10.0 255.285.285.0
NorthOfficeRouter (dhcp-config)# default-router 1592.1€8.10.254
NorthOfficeRouter (dhep-config) #dns-server 192.1€8.1.100
NorthO££iceRouter (dhep-config) 4