Menu
Get a Quote
Let's Chat

Cisco IOS DHCP Server Configuration

by Hunter Gorman, on May 22, 2020 1:30:00 PM

Cisco devices running Cisco programming incorporate Dynamic Host Configuration Protocol (DHCP) servers and the transfer specialist programming. The Cisco IOS DHCP server is a full usage server that allocates and oversees IP addresses from determined location pools inside the gadget to DHCP customers. The DHCP server can be arranged to allocate extra parameters, for example, the IP address of the Domain Name System (DNS) server and the default devices. Today, we'll be diving into the DHCP server system to work through the general use case as well as walking through a configuration example for your network.

cisco server family

Overview of the DHCP Server

The Cisco DHCP server acknowledges address task solicitations and restorations from the customer and appoints the addresses from predefined gatherings of addresses inside DHCP address pools. These location pools can likewise be designed to supply extra data to the mentioning customer, for example, the IP address of the Domain Name System (DNS) server, the default gadget, and other setup parameters. The Cisco DHCP server can acknowledge communication from privately joined LAN portions or from DHCP demands that have been sent by other DHCP transfer operators inside the system.

General Usage Scenarios

There are four key DHCP usage scenarios:

  1. Initial Client Connection: the client requests from the DHCP server an IP address and other parameter values for accessing network services
  2. IP Usage Extension: the client contacts the DHCP server to extend usage of its current IP address
  3. Client Connection After Reboot: the client contacts the DHCP server for confirmation that it can use the same IP address being used before reboot
  4. Client Disconnection: the client requests the DHCP server to release its IP address.

Dynamic Host Configuration Protocol (DHCP)

DHCP is an application layer protocol used to distribute various network configuration parameters to devices on a TCP/IP network. – IP addresses, subnet masks, default gateways, DNS servers, etc. DHCP employs a client-server architecture; a DHCP client is configured to request network parameters from a DHCP server on the network. A DHCP server is configured with a pool of available IP addresses and assigns one of them to the DHCP client.

dhcp server configuration diagram

When you're looking to configure DHCP on Cisco routers, Layer 3 and Layer 2 switches, follow these steps:

  • Exclude IP addresses from being assigned by DHCP
  • Create a new DHCP pool 
  • Define a subnet that will be used to assign IP addresses to hosts 
  • Define the default gateway 
  • Define the DNS server 
  • Define the DNS domain name 
  • Define the lease duration by using the lease time 

dhcp configuration in a pivit global router

Configuring Manual Bindings

A location restricting is a mapping between the IP address and MAC address of a customer. The IP address of a customer can be relegated physically by an overseer or doled out consequently from a pool by a DHCP server. 

Manual ties are IP addresses physically mapped to MAC locations of hosts that are found in the DHCP database. Manual ties are put away in the NVRAM of the DHCP server and are simply extraordinary location pools. There is no restriction to the quantity of manual ties, however you can arrange just a single manual restricting per have pool.

Note We cannot configure manual bindings within the same pool.

configuring manual binding in DHCP at pivit global

PivIT Troubleshooting Tip

You can determine the client identifier by using the debug ip dhcp server packet command.

PIVIT-Router# debug ip dhcp server packet

Customizing DHCP Server Operation

By default, the DHCP server pings a pool address twice before assigning a particular address to a requesting client. If the ping is unanswered, the DHCP server assumes (with a high probability) that the address is not in use and assigns the address to the requesting client.

custom dhcp operation at pivit global

Configuring the Remote Device to Import DHCP Options

Perform the following task to configure the remote device to import DHCP options

remote device to import dhcp at pivit global

DHCP Show Commands

  • Show IP DHCP import
  • Show IP DHCP Pool
  • Show IP DHCP binding
  • Show IP DHCP database
  • Show IP DHCP server statistics 

About PivIT Global

Leave a comment, question, or concern below. We created the Tech Corner to connect with you on configuring your DHCP Server, product discussions, configurations, product comparisons, and provide you with information about the industry! Subscribe to the Tech Corner today!

Topics:Configuration GuidesCisco ServersDHCP

Comments