DHCP defined and how it works (2024)

If Dynamic Host Configuration Protocol (DHCP) didn’t exist, network administrators would have to manually parcel out IP addresses from the available pool, which would be prohibitively time consuming, inefficient, and error prone. Fortunately, DHCP does exist.

What is DHCP and how does it work?

DHCP is an under-the-covers mechanism that automates the assignment of IP addresses to fixed and mobile hosts that are connected wired or wirelessly.

When a device wants access to a network that’s using DHCP, it sends a request for an IP address that is picked up by a DHCP server. The server responds be delivering an IP address to the device, then monitors the use of the address and takes it back after a specified time or when the device shuts down. The IP address is then returned to the pool of addresses managed by the DHCP server to be reassigned to another device as it seeks access to the network.

While the delegation of IP addresses is the central function of the protocol, DHCP also assigns a variety of related networking parameters including subnet mask, default gateway address, and domain name server (DNS). DHCP is an IEEE standard built on top of the older BOOTP (bootstrap protocol), which has become obsolete because it only works on IPv4 networks.

Benefits of DHCP

DHCP provides a range of benefits to network administrators:

Reliable IP address configuration

You can’t have two users with the same IP address because it would create a conflict where one or both devices could not connect to the network. DHCP eliminates human error so that address conflicts, configuration errors, or simple typos are minimized.

Reduced network administration

DHCP provides centralized and automated TCP/IP configuration. By deploying a DHCP relay agent, a DHCP server is not needed on every subnet.

Mobility

DHCP efficiently handles IP address changes for users on portable devices who move to different locations on wired or wireless networks.

IP address optimization

DHCP not only assigns addresses, it automatically takes them back and returns them to the pool when they are no longer being used.

Efficient change management

DHCP makes it simple for an organization to change its IP address scheme from one range of addresses to another. DHCP enables network administrators to make those changes without disrupting end users.

DHCP components

When working with DHCP, it’s important to understand all of its components. Below is a list of them and what they do:

DHCP server

This is a networked device running the DCHP service that holds IP addresses and related configuration information. This is most typically a server or a router but could be anything that acts as a host, such as an SD-WAN appliance.

DHCP client

This endpoint endpoint software requests and receives configuration information from a DHCP server. This can be installed on a computer, mobile device, IoT endpoint or anything else that requires connectivity to the network. Most are configured to receive DHCP information by default.

IP address pool

The range of IP addresses that are available to DHCP clients is the IP address. Addresses are typically handed out sequentially from lowest to highest.

Subnet

IP networks can be partitioned into segments known as subnets. Subnets help keep networks manageable.

Lease

The length of time for which a DHCP client holds the IP address information is known as the lease. When a lease expires, the client must renew it.

DHCP relay

A router or host that listens for client messages being broadcast on that network and then forwards them to a configured server is the DHCP relay. The server then sends responses back to the relay agent that passes them along to the client. This can be used to centralize DHCP servers instead of having a server on each subnet.

Assigning IP addresses

The existential question associated with DHCP is how does an end user connect to the network in the first place without having an IP address?

The answer is that there’s a complex system of back-and-forth requests and acknowledgments. First, all modern device operating systems include a DHCP client, which is typically enabled by default. In order to request an IP address, the client device sends out a broadcast message—DHCPDISCOVER. The network directs that request to the appropriate DHCP server.

DHCP server functionality is typically assigned to a physical server plus a backup. Other devices can also act as DHCP servers, such as SD-WAN appliances or wireless access points.

The server then determines the appropriate IP address and sends an OFFER packet to the client, which responds with a REQUEST packet. In the final step in the process, the server sends an ACK packet confirming that the client has been given an IP address.

This is all done quickly and automatically and without the need for the end user to take any action. The catch is that the IP address isn’t permanent. It’s only good for a specified period of time, known as the lease time.

Controlling lease time

If all DHCP did was assign IP addresses permanently, it wouldn’t be dynamic, it would be static. Static addresses are appropriate for some devices, such as network printers. However, under the DHCP protocol, every time the DHCP server assigns an address there is an associated lease time. When the lease expires, the client can no longer use the IP address and is essentially kicked off the network.

The protocol is designed so active clients automatically contact the DHCP server halfway through the lease period to renew the lease. If the server doesn’t respond immediately, the client continues to ask the DHCP server for a lease renewal until it is approved.

Typically, when a host shuts down, the lease is automatically terminated, in order to free up its IP address so it can be used by another client on the network.

DHCP networking functionality

In addition to providing the client with the ability to connect to network and internet resources through the IP address, the DHCP server assigns additional networking parameters that provide efficiency and security. These include:

Default gateway

This gateway is responsible for transferring data back and forth between the local network and Internet, or between local subnets.

Subnet mask

IP networking uses a subnet mask for separate the host address and the network address portions of an IP address.

DNS server

Translates domain names (networkworld.com) into IP addresses, which are represented by long strings of numbers.

Scopes and user classes of IP addresses

DHCP assigns addresses dynamically, but not randomly. Since DHCP connects hosts to the network and also assigns networking parameters, there are scenarios in which a network administrator might want to assign certain sets of subnet parameters to specific groups of users.

A scope is a consecutive range of IP addresses that a DHCP server can draw on to fulfill an IPaddress request from a DHCP client. By defining one or more scopes on the DHCP server, the server can manage the distribution and assignment of IP addresses to DHCP clients. Under the DHCP protocol, network admins can set unlimited numbers of scopes, as needed.

A class is a subset of a scope. Classes are useful if the network administrator wants to separate groups of devices to one segment of a larger scope. For example, SD-WAN clients for employees working remotely.

DHCP security concerns

With DHCP, the initial assignment of an IP address is designed to be fast and efficient. The tradeoff is that the DHCP protocol doesn’t require authentication. Of course, enterprises have set up strong authentication requirements for users to access resources once they are on the network, but that still leaves the DHCP server itself as a weak link in the security chain.

An attacker could take over or spoof the DHCP server and hand out bad information to legitimate end users, sending them to a fake site. Or it could hand out legitimate IP addresses to unauthorized users. This could lead to man-in-the-middle attacks and denial of service attacks.

The DHCP specification does address some of these issues. There is a relay-agent information option that enables network engineers to tag DHCP messages as they arrive. This tag can be used to control network access. In addition, network administrators can use 802.1x authentication (network access control) to help secure DHCP.

DHCP defined and how it works (2024)

FAQs

DHCP defined and how it works? ›

Dynamic Host Configuration Protocol (DHCP) is a network protocol used to automate the process of configuring devices on IP networks, thus allowing them to use network services such as DNS, NTP, and any communication protocol based on UDP or TCP.

How does DHCP work step by step? ›

DHCP operations fall into four phases: server discovery, IP lease offer, IP lease request, and IP lease acknowledgement. These stages are often abbreviated as DORA for discovery, offer, request, and acknowledgement. The DHCP operation begins with clients broadcasting a request.

What is DHCP and what does it do? ›

Dynamic Host Configuration Protocol (DHCP) is a client/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.

What is the DHCP protocol for dummies? ›

DHCP works by leasing IP addresses and IP information to network clients for a period of time. For the lease to happen, the following negotiation process occurs: 1. During the boot process, a client computer that is configured as a DHCP client sends out a broadcast packet called DHCPDISCOVER.

What are two functions of DHCP? ›

The server has two basic functions: Managing IP addresses – The DHCP server controls a range of IP addresses and allocates them to clients, either permanently or for a defined period of time. The server uses a lease mechanism to determine how long a client can use a nonpermanent address.

What is the difference between DNS and DHCP? ›

Domain Name System (DNS) is an Internet service that translates domain names (e.g., its.umich.edu) into IP addresses. Dynamic Host Configuration Protocol (DHCP) is a protocol for automatically assigning IP addresses and other configurations to devices when they connect to a network.

What is DHCP explained easy? ›

DHCP assigns new IP addresses in each location when devices are moved from place to place, which means network administrators do not have to manually configure each device with a valid IP address or reconfigure the device with a new IP address if it moves to a new location on the network.

What are 3 benefits of using DHCP? ›

Overall, DHCP simplifies configuration management, increases scalability, streamlines IP address management, and makes network troubleshooting easier. It is a useful tool for effective network management due to its automation and centralized characteristics.

How do I use DHCP? ›

Steps to enable DHCP
  1. Open a web browser on a laptop or desktop computer, or a mobile device.
  2. Log in to your router's setup page. ...
  3. Go to the network setup or LAN setup section.
  4. Locate the DHCP setting.
  5. Check if it is enabled. ...
  6. Save the changes.
  7. Restart your router for the changes to take effect.
Feb 10, 2023

What are the disadvantages of DHCP? ›

Disadvantages. IP conflict can occur. The problem with DHCP is that clients accept any server. Accordingly, when another server is in the vicinity, the client may connect with this server, and this server may possibly send invalid data to the client.

How does a DHCP server assign IP addresses? ›

The DHCP server selects an IP address for a client by performing the following steps: DHCP server compares the client against DHCP user classes in the order they are configured. If the client matches a user class, the DHCP server selects an IP address from the address range of the user class.

What is the port number of DHCP? ›

DHCP servers have a User Datagram Protocol (UDP) port number of 67, so listen for messages addressed to this port number. On the other hand, DHCP clients have the UDP port number 68 and only respond to messages sent to number 68.

What is the main job of DHCP? ›

Dynamic Host Configuration Protocol (DHCP) is a network protocol used to automate the process of configuring devices on IP networks, thus allowing them to use network services such as DNS, NTP, and any communication protocol based on UDP or TCP.

What are the three components of DHCP? ›

DHCP Components. The DHCP architecture consists DHCP servers, DHCP clients, and DHCP relay agents. The client interacts with servers using DHCP messages in a DHCP conversation to obtain and renew IP address leases and network configuration parameters.

Is DHCP using TCP or UDP? ›

DHCP uses UDP as its transport protocol.

What is the third step of the four steps of the DHCP process? ›

In the third step, the client responds to the DHCP server's DHCPOFFER through a DHCPREQUEST message requesting the offered IP address and relevant network configuration sent by the DHCP server for the system.

How many steps are there in DHCP? ›

DHCP consists of a four-step transfer process beginning with a broadcast DHCP discovery message from the client. As the second step, the client receives a DHCP offer message from the server. This message includes the IP address and mask, and some other specific parameters.

How does DHCP relay work step by step? ›

The DHCP relay agent receives the request packet and forwards copies to each of the two DHCP servers. The DHCP server requested by the client sends an acknowledgement (ACK) packet that contains the client's configuration parameters. The DHCP relay agent receives the ACK packet and forwards it to the client.

What are the steps of DHCP broadcast? ›

After the DHCP servers determine the client's network, the servers select an appropriate IP address and verify that the address is not already in use. The DHCP servers then respond to the client by broadcasting an offer message.

Top Articles
7 Team KPIs That Matter The Most: Measure And Track Team Performance
NVIDIA GeForce RTX 3060 Family
Skigebiet Portillo - Skiurlaub - Skifahren - Testberichte
Sound Of Freedom Showtimes Near Governor's Crossing Stadium 14
Jefferey Dahmer Autopsy Photos
Gameplay Clarkston
Western Razor David Angelo Net Worth
414-290-5379
Best Pawn Shops Near Me
World History Kazwire
Assets | HIVO Support
Builders Best Do It Center
Johnston v. State, 2023 MT 20
Watch TV shows online - JustWatch
Superhot Unblocked Games
Bjork & Zhulkie Funeral Home Obituaries
5 high school volleyball stars of the week: Sept. 17 edition
Beebe Portal Athena
Yakimacraigslist
Vandymania Com Forums
Sprinkler Lv2
Loft Stores Near Me
Ice Dodo Unblocked 76
Ecampus Scps Login
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
Is Holly Warlick Married To Susan Patton
Churchill Downs Racing Entries
Meowiarty Puzzle
Grand Teton Pellet Stove Control Board
Wega Kit Filtros Fiat Cronos Argo 1.8 E-torq + Aceite 5w30 5l
Chapaeva Age
Nextdoor Myvidster
2024 Coachella Predictions
Arcadia Lesson Plan | Day 4: Crossword Puzzle | GradeSaver
In Polen und Tschechien droht Hochwasser - Brandenburg beobachtet Lage
Henry County Illuminate
Ursula Creed Datasheet
Levothyroxine Ati Template
2700 Yen To Usd
Miracle Shoes Ff6
Rush Copley Swim Lessons
Pink Runtz Strain, The Ultimate Guide
2013 Honda Odyssey Serpentine Belt Diagram
Senior Houses For Sale Near Me
Lyons Hr Prism Login
Spreading Unverified Info Crossword Clue
Air Sculpt Houston
Huntsville Body Rubs
Bank Of America Appointments Near Me
Lsreg Att
Tweedehands camper te koop - camper occasion kopen
Les BABAS EXOTIQUES façon Amaury Guichon
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 5641

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.