Labor Day starts with $70+ in savings on Coursera Plus. Save 40% for 3 months.
DHCP is a network protocol used to automate the configuration of devices on IP networks. Learn why DHCP is used and its three main components.
![[Featured image] An IT support specialist is learning about DHCP while sitting on the couch with their dog.](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://images.ctfassets.net/wp1lcwdav1p1/1pLRNP4fgksHJwyW9g2Uob/2162d576f3dc9f014499cbc86bd31e85/_1_FA0mg-converted-from-jpeg.webp?w=1500&h=680&q=60&fit=fill&f=faces&fm=jpg&fl=progressive&auto=format%2Ccompress&dpr=1&w=1000)
DHCP is a protocol that helps streamline the configuration of devices on any IP network.
DHCP is made up of several components, including the DHCP server, DHCP client, and DHCP relay agents, which work together to assign private IP addresses to devices on a common network.
A DHCP server enables network administrators to define client configuration settings, including subnet masks and remote hosts for storing lease information.
The DHCP is primarily used for automating the configuration of network devices. Learn more about the working mechanism of DHCP.
Afterward, if you’re ready to take your first step toward a career in information technology (IT), enroll in the IBM IT Support Professional Certificate. In as little as three months, you can learn how to install and configure devices, operations systems, and applications.
Dynamic Host Configuration Protocol (DHCP) is a network protocol used to automate the configuration of devices on internet protocol (IP) networks. DHCP is working in our homes and connecting our devices, often without us realizing it. It assigns private IP addresses to our computers, smartphones, Wi-Fi devices, and gadgets, which all use a single network, such as a router, that contains the public IP address. On a wider scope, it connects any device to any IP network, whether it is a local area network (LAN) or a wide area network (WAN).
Devices must connect to a public IP address to send information to each device. As devices use private IP addresses, these do not stay the same and are assigned at each time of use. They collectively dip into a pool of IP addresses that a device uses and put them back when you stop using that device. It would take a long time to configure these manually, so DHCP does this effortlessly, most of the time without us giving it any thought.
Domain Name System (DNS) is the service that the internet uses to change domain names, such as coursera.org, into an IP address you can connect to. DHCP, however, is the protocol that automatically gives the devices that connect to a network an IP address.
Read more: Information Technology (IT) Terms: A to Z Glossary
DHCP consists of three components: the DHCP server, DHCP client, and DHCP relay agents. Let’s take a look at each one and what they are responsible for:
The server issues the IP addresses and can tell the clients on its network apart. The DHCP server allows network administrators to assign rules to clients, such as applying a subnet mask and assigning a remote host to store lease information.
Clients are devices that connect to a network, such as phones, computers, printers, and servers. The communication between the client and server follows a process called the DHCP handshake:
Discover: The client that wants to connect to the internet sends a message (packet) to DHCP servers.
Offer: The DHCP server receives the message and offers all the available private IP addresses.
Request: The client selects an address and sends a message to other clients on the network to make sure the IP address is not already in use.
Acknowledge: The DHCP server acknowledges the client’s request and sends all the relevant information needed to connect to the server.
Relay agents transport the requests between the client and the server. On a small network with limited devices, the relay agent is not necessary, but they are effective in larger networks, especially ones using remote servers.
![[Video thumbnail] How to become a IT Professional](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://images.ctfassets.net/wp1lcwdav1p1/7Ldovgqg01xEzSoTdwRh4N/1a3eca7bcf76f77672b4f894c4694f49/How_to_Become_a_-CAREER-_-_Software_Development.jpg?auto=format%2Ccompress&dpr=1&w=750&h=450&q=60)
Browse our Career Resource Hub for access to skills and career quizzes, insights into learning and professional pathways, and career planning tips. Prepare for a career in IT support with our other free digital resources:
Read our Career Chat issue: Ready for a tech career? How to choose between IT and cloud support
Watch on YouTube: IS vs IT: Which Tech Career Path Fits You?
Hear from an insider: Meet the IT Support Tech Advancing Toward a Cybersecurity Career
Accelerate your career growth with a Coursera Plus subscription. When you enroll in either the monthly or annual option, you’ll get access to over 10,000 courses.


Editorial Team
Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...
This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.