DHCP Configuration
DHCP Configuration
In this How To we will cover creating a DHCP pool on Cisco iOS, the different options typically configured in an enterprise, DHCP exclusions, and DHCP VRF configuration, and the configuration of a DHCP relay.

Configuration
This is the basic configuration of a DHCP pool in Cisco iOS to get the pool up and running. Shown below is the full configuration for both DHCP pools in our diagram

- Now lets go over configuring the lease time and the commonly used "options" configured in a DHCP pool.
- Shown below is the full configuration of these options.

- Now lets go over exclusions. It is sometimes needed to exclude IP addresses from the DHCP pool to be assigned. In this example we will exclude the printer's IP address.
Shown below is the full configuration.

- Now we are going to go over VRF support for DHCP and how to assign a DHCP pool to a VRF's Subnet. We will be covering VRF's in a later section
The full configuration is shown below.

Now we will cover configuring a DHCP relay with the IP Helper-address command. The ip helper-address command will need to be configured under each interface that has a subnet and users that will need IP addressing from the DHCP server.

Now lets go over the actual configuration
Shown below is the full configuration

Verification
Now we will go over the show commands used to troubleshoot and help manage DHCP pools on Cisco iOS


In the photo shown below we can see a Wireshark/TCP capture of the DORA process from endpoint to Cisco iOS device.

In this capture you initially see the discover is sent with a source address of 0.0.0.0 because the device does not have an IP address. Then after the DHCPack we see the device now has an IP address. In the video's accompanying these guides we will take a deep dive into each DHCP packet in DORA.
Last updated