Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How does Dynamic Host Configuration Protocol work
  • WAMP errors
    Apache errors associated with WAMP installation for TeamPass Web Server
  • Reset folder view settings on File Explorer for Windows 11 and 10
    Reset folder view settings on File Explorer for Windows 11 and 10 Windows
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server
  • windows 10 bjw3 1280x720 1
    How to Find the Pathname of a Mapped Network Drive Windows
  • BitLocker renamedevicefghjkl
    What are the effect of renaming an MBAM-Protected Computer Windows
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • linux windows 10
    Windows Subsystem for Linux: How to install WSL on Windows 10 Linux
  • exchange 2016 1
    Remove Microsoft Exchange Server: Using ADSIEdit Tool Network | Monitoring

How does Dynamic Host Configuration Protocol work

Posted on 10/05/202017/10/2024 Christian By Christian No Comments on How does Dynamic Host Configuration Protocol work
How does Dynamic Host Configuration Protocol work

Dynamic Host Configuration Protocol (DHCP) is a client and server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. In this article, we shall discuss how does Dynamic Host Configuration Protocol works. Please see how to backup and restore a Windows DHCP Server via the DHCP Manager and PowerShell. Also, see WDS and DHCP Deployment Scenarios: Configure DHCP Options 60, 66, and 67.

RFCs 2131 and 2132 define DHCP as an Internet Engineering Task Force (IETF) standard based on Bootstrap Protocol (BOOTP), a protocol with which DHCP shares many implementation details. DHCP allows hosts to obtain required TCP/IP configuration information from a DHCP server.

Kindly refer to the following related guides:  Dynamic Host Configuration Protocol works, and DHCP Icons: DHCP specific reference console icons. Information on BOOTP Vendor Extensions and DHCP Options. And “how to fix we can’t sign you with this credential because your domain isn’t available: Why Can’t I Connect with a 169.254 IP Address?“

DHCP Operation

When a device needs an IP address to communicate on the network. One way to assign an IP address to the device is to configure it statically. But if you are responsible for deploying a large infrastructure, configuring each device manually becomes impractical.

Dynamic host configuration protocol (DHCP) is a way to automate the assignment of IP Addresses to the host.

DHCP communication
Here is a screenshoot of a DHCP communication below.

Step 1: DHCPDISCOVER

When a client boots up for the first time (or tries to join a new network). It needs to obtain an IP address to communicate. So it first transmits a DHCPDISCOVER message on its local subnet.

Because the client has no way of knowing the subnet to which it belongs. The DHCPDISCOVER is an all-subnets broadcast (destination IP address of 255.255.255.255, which is a layer 3 broadcast address) and a destination MAC address of FF-FF-FF-FF-FF-FF (which is a layer 2 broadcast address).

The client does not have a configured IP address, so the source IP address of 0.0.0.0 is used. The purpose of the DHCPDISCOVER message is to try to find out a DHCP Server.

Please seehow to fix Can’t Sign In: Domain Unavailable & 169.254 IP Address Issue. You may want to see How to backup and restore a Windows DHCP Server via the DHCP Manager and PowerShell.

Step 2: DHCPOFFER

After receiving the discovery message, the DHCP Server will dynamically pick up an unassigned IP address from its IP pool. And then it broadcasts a DHCPOFFER message to the client(*).

DHCPOFFER message could contain other information such as subnet mask, default gateway, IP address lease time, and domain name server (DNS).

Step 3: DHCPREQUEST

If the client accepts the offer, it then broadcasts a DHCPREQUEST message saying it will take this IP address. It is called request message because the client might deny the offer by requesting another IP address.

Notice that the DHCPREQUEST message is still a broadcast message because the DHCP client has still not received an acknowledged IP. Also, a DHCP Client can receive DHCPOFFER messages from other DHCP Servers so sending broadcast DHCPREQUEST messages is also a way to inform other offers that have been rejected.

Step 4: DHCPACKNOWLEDGEMENT

When the DHCP server receives the DHCPREQUEST message from the client, the DHCP Server accepts the request by sending the client a unicast DHCPACKNOWLEDGEMENT message (DHCPACK)

With this understanding, let’s proceed to install the DHCP role on WS2019, see the following link for more information.

Please see How to install DHCP role on Windows Server 2019, and Configuring DHCP: Post-deployment of Dynamic Host Configuration Protocol. Also, see the “Comprehensive Guide to Install DHCP Server on Windows Server“.

Benefits of DHCP

DHCP provides the following benefits listed below.

Reliable IP address configuration. DHCP minimizes configuration errors caused by manual IP address configuration, such as typographical errors, or address conflicts caused by the assignment of an IP address to more than one computer at the same time.

Reduced network administration. DHCP includes the following features to reduce network administration.

  • Centralised and automated TCP/IP configuration.
  • The ability to define TCP/IP configurations from a central location.
  • The ability to assign a full range of additional TCP/IP configuration values by means of DHCP options.
  • The efficient handling of IP address changes for clients that must be updated frequently, such as those for portable devices that move to different locations on a wireless network.
  • The forwarding of initial DHCP messages by using a DHCP relay agent which eliminates the need for a DHCP server on every subnet.

I hope you found this blog post on how Dynamic Host Configuration Protocol works helpful. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:DHCP, DHCP Server, Dynamic Host Configuration Protocol, TCP/IP, Windows Server 2016

Post navigation

Previous Post: Windows Deployment Services: How to setup and install WDS role
Next Post: How to install DHCP role on Windows Server 2019

Related Posts

  • SSL for Localhost on WAMP
    How to configure SSL for WAMP server Windows Server
  • RDS Collection 1
    How to add and remove RDS Collection Windows
  • dns records
    What are the different types of DNS Records Windows Server
  • Active Directory Security Hardening with GPO and Policy Analyzer
    Harden Active Directory Using CIS Benchmark and MSCT 1.0 Windows Server
  • dfggg 2
    Installing and configuring SimpleSAMLphp [Part 2] Windows Server
  • Screenshot
    How to change the Windows Pagefile Size Windows Server

More Related Articles

SSL for Localhost on WAMP How to configure SSL for WAMP server Windows Server
RDS Collection 1 How to add and remove RDS Collection Windows
dns records What are the different types of DNS Records Windows Server
Active Directory Security Hardening with GPO and Policy Analyzer Harden Active Directory Using CIS Benchmark and MSCT 1.0 Windows Server
dfggg 2 Installing and configuring SimpleSAMLphp [Part 2] Windows Server
Screenshot How to change the Windows Pagefile Size Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • WAMP errors
    Apache errors associated with WAMP installation for TeamPass Web Server
  • Reset folder view settings on File Explorer for Windows 11 and 10
    Reset folder view settings on File Explorer for Windows 11 and 10 Windows
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server
  • windows 10 bjw3 1280x720 1
    How to Find the Pathname of a Mapped Network Drive Windows
  • BitLocker renamedevicefghjkl
    What are the effect of renaming an MBAM-Protected Computer Windows
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • linux windows 10
    Windows Subsystem for Linux: How to install WSL on Windows 10 Linux
  • exchange 2016 1
    Remove Microsoft Exchange Server: Using ADSIEdit Tool Network | Monitoring

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.