Dynamic Host Configuration Protocol (DHCP)


Dynamic Host Configuration Protocol, or DHCP, is a standard Internet protocol that enables the dynamic configuration of hosts on an Internet Protocol (IP) internetwork.

What is Dynamic Host Configuration Protocol (DHCP)?

DHCP is a standard Internet protocol that enables the dynamic configuration of hosts on an Internet Protocol (IP) internetwork. Dynamic Host Configuration Protocol (DHCP) is an extension of the bootstrap protocol (BOOTP).

How DHCP works

DHCP is a client-server protocol that uses DHCP servers and DHCP clients. A DHCP server is a machine that runs a service that can lease out IP addresses and other TCP/IP information to any client that requests them. For example, on Microsoft Windows NT or Windows 2000 servers, you can install the Microsoft DHCP Server service to perform this function. The DHCP server typically has a pool of IP addresses that it is allowed to distribute to clients, and these clients lease an IP address from the pool for a specific period of time, usually several days. Once the lease is ready to expire, the client contacts the server to arrange for renewal.

DHCP clients are client machines that run special DHCP client software enabling them to communicate with DHCP servers. All versions of Windows include DHCP client software, which is installed when the TCP/IP protocol stack is installed on the machine.

DHCP clients obtain a DHCP lease for an IP address, a subnet mask, and various DHCP options from DHCP servers in a four-step process:

  1. DHCPDISCOVER: The client broadcasts a request for a DHCP server. 
  2. DHCPOFFER: DHCP servers on the network offer an address to the client. 
  3. DHCPREQUEST: The client broadcasts a request to lease an address from one of the offering DHCP servers. 
  4. DHCPACK: The DHCP server that the client responds to acknowledges the client, assigns it any configured DHCP options, and updates its DHCP database. The client then initializes and binds its TCP/IP protocol stack and can begin network communication.
DHCP - Explaining DHCP process.
Explaining the DHCP process.

When you implement DHCP on a network, you should consider the following:

  • DHCP servers do not share their database of leased IP addresses, so if your network has more than one DHCP server, be sure that their DHCP scopes do not overlap.
  • Assign DHCP options to the DHCP server if clients need them.
  • Assign static IP addresses to non-DHCP clients, and exclude these addresses from the scope on the DHCP server if necessary.
  • Assign static IP addresses to all servers on your network or assign them DHCP client reservations on the DHCP server to ensure that they always lease the same IP address.
  • Configure DHCP relay agents if one DHCP server must serve hosts on several subnets.
Example of DHCP Scope configuration
Example of DHCP Scope configuration

Dynamic Host Configuration Protocol (IP Address allocation)

A small video explaining the concept of DHCP, an application-layer protocol that your own computer probably uses to get an IP address from your network.

Explaining How DHCP Works

DHCP on Windows 2016

A Windows 2016 server can be set up as a DHCP server and assign IP addresses to all elements of your network. 
For doing that you first have to: run live update to get the latest updates; Configured a static IP address and turn off your firewall.

Windows 2016 server

If you don’t have Windows 2016 Server software you can buy it right now from Amazon store clicking here.

Open Server Manager and click Add roles and features, and Next. 
Chose Role-based or feature-based installation and click Next. 

Choose the server on which you want to configure DHCP and click Next.
Choose DHCP from server roles. As soon as you choose DHCP, a new window appears. Click Add Features.
Click Next. The DHCP Server Feature is enabled.
The .NET Frameworks that are required for the DHCP server are already pre-selected.
Read the note about what the Dynamic Host Configuration Protocol can do, then click Next.
Click install and the first step is complete.

Editor

Articles posted after being checked by editors.

Recent Posts

link to ECC RAM

ECC RAM

ECC RAM stands for Error-Correcting Code RAM. It’s a specialized form of computer memory that integrates sophisticated error detection and correction functionalities.