TechKnowSurge
Cisco CCNA 4.3 Cisco CCNA 4.6
VideoNetworkFree

DHCP Review

DHCP is a network protocol that automatically assigns IP addresses and configuration settings to client devices through a structured discovery and negotiation process between clients and servers. This content covers the client-server relationship, the four-step DORA process, and key server configuration components including scopes, lease times, reservations, and options.

Complete this video to capture a CTF flag worth 1 point.

About this video

DHCP operates on a client-server model in which a client device requests network configuration and a DHCP server responds with an IP address and supporting parameters. The client role is handled by a background service running on the endpoint, while the server role is fulfilled by a dedicated service listening on a router, Layer 3 switch, or standalone server. These two roles are distinct, and understanding the difference is foundational to both configuring DHCP infrastructure and troubleshooting address assignment failures. The assignment sequence follows four steps known as DORA: Discovery, Offer, Request, and Acknowledgment. The client begins by broadcasting a Discovery message across the Layer 2 network, which any listening DHCP server can receive and answer. Each responding server sends a unicast Offer directly to the client's MAC address, and if multiple offers arrive, the client selects the best one — typically based on the longest lease time — and broadcasts a Request to claim it. The chosen server then sends a unicast Acknowledgment to finalize the assignment, and any other servers that had responded reclaim their offered addresses back into their pools. Several configuration components define how a DHCP server operates. The scope, or pool, establishes the range of IP addresses available for assignment. The lease time determines how long a client may hold an assigned address before it must renew, with renewal typically attempted at the halfway point of the lease period. Reservations allow a specific IP address to be consistently assigned to a particular device based on its MAC address, useful when consistent addressing is needed without manual static configuration. Options such as DNS server address, default gateway, and domain name are additional parameters distributed to clients alongside the IP address, enabling full network connectivity without manual intervention.

What you'll learn

What's covered

DHCP Review

Aligned to

Cisco CCNA
4.3 Explain the role of DHCP and DNS within the network
4.6 Configure and verify DHCP client and relay

Key terms

Dynamic Host Configuration Protocol
DHCP
A network protocol that automatically assigns IP addresses and other configuration parameters to devices on a network.
Server
A computer or program that provides services or resources to other devices, known as clients, over a network.
IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Domain Name System
DNS
A hierarchical naming system that translates human-readable domain names into IP addresses.
Default Gateway
The router that a device uses to send traffic to destinations outside its local network.
Media Access Control
MAC
A sublayer of the Data Link layer that controls how devices on a network gain access to a medium and transmit data.
DHCP Scope
The defined pool of IP addresses that a DHCP server is configured to assign to clients on a specific subnet, along with associated options such as the subnet mask, default gateway, and DNS servers. Each subnet served by a DHCP server has its own scope.
DHCP Lease
The amount of time a client is permitted to use an IP address assigned by a DHCP server before it must be renewed or released.
DHCP Reservation
A manual DHCP allocation that permanently assigns a specific IP address to a device based on its MAC address, ensuring it receives the same address each time it connects.
Digital Operational Resilience Act
DORA
A European Union regulation that establishes binding requirements for financial entities and their ICT service providers to ensure operational resilience against digital disruptions and cyber threats. It mandates risk management, incident reporting, resilience testing, and third-party risk oversight for the EU financial sector.

Topics

Dhcp Network Protocols Ip Addressing Client Server Networking

Transcript

Client and Server

The first thing to note is DHCP has both a client and a server. The client is the one that makes the request, and the server is the one that serves up the information, or serves up the services, to that client. So there's an interplay between two devices on here, a client and a server.

We're going to use this demo laptop as an example of the DHCP client, and then it's going to be making a request to a DHCP server, which could be the router, it could be a layer 3 switch, or it could be one of these Pis over here, or some other server that's on your network. So just realize that you have this demo laptop that is the client that's going to be requesting services from a server.

I thought I'd give you a quick little visual of what this looks like on a Windows machine. What I can do is I can go to the Windows menu and type in services to see what services are running on this machine, and as I look through these services I'm going to look for DHCP client. So there's the DHCP client — that is the service that's running that's going and asking for an IP address if this machine needs an IP address. So that's what's running on this side. If I were to go to a Windows server and take a look at the same thing, one that was running a DHCP server, I would see on that side a DHCP server, and it's listening for those requests. So a client's going to send a request, and then the server is going to be listening on those ports for that client's request so that it can respond to it.

The DHCP Process

To kick off this process, the DHCP client is going to send out a discovery. It's a DHCP discovery, and that is a broadcast that gets sent out on the layer 2 network. So it gets broadcasted out on the whole layer 2 network, so whatever DHCP servers are listening out there will receive that. You could actually have multiple servers reply to this DHCP discovery. So that's the discovery.

The next step — let's use this demo Pi as an example of something a DHCP server is running on. It's going to reply back and it's going to create an offer, and that's going to be a unicast, so it's going directly from this demo Pi and going directly to the demo laptop. It's destined for the MAC address of this demo laptop, and it's going to send that out with an IP address and some information on it that this demo laptop can use to get onto the network.

If there are multiple DHCP servers that are responding, then this demo laptop will choose the best one out of all of the offers, usually based off of the lease time, the longest lease time. And then it's going to respond back with a request: I'm going to request that what you have given, I'm requesting that now, I'm going to request that IP address. That also is sent as a broadcast, so if there were other DHCP servers that had responded, they'll see that request being sent back out and realize they can return those IP addresses to the pool. And just the one — in this case the demo Pi — will then realize that this is the machine that's actually getting the IP that I had made an offer for.

Then next what it does is it sends back — and this is also unicast, so it's directly going from the demo Pi to the demo laptop — an acknowledgment. So it's a DHCP acknowledgment that gets sent back to this demo laptop, so the demo laptop then can say, I now have this IP address, I've gone through this process, and now I can get onto the network knowing that I'm the only one on this network.

Components and Options

There are some different components that you should probably understand when it comes to DHCP, some terminology, some aspects to this.

First of all is the scope, or the pool. The scope or the pool is the range of addresses that can be handed out.

Then you have the lease time. The lease time is how long a client can hold on to that IP address for. So if you set it for 24 hours, then this laptop should release that IP address within 24 hours — although I have had to troubleshoot times when a client doesn't release that IP address properly. Usually it's on like a Mac or Apple machine, although I imagine that those are not as big of an issue nowadays. And what a machine will try to do is, when it's at the halfway point, it will request a renewal, so that way it doesn't get too close to that time.

Then you have reservations. A reservation is if I wanted a specific IP address on a specific machine, but I still want it to act as a DHCP client — then I can make a reservation on the server for that machine specifically. Let me just give you an example of this. Let's say I take this demo laptop and I go from network to network with it, and I don't want to sit there and assign a static IP address to it. So when I connect into this network I want a specific IP address, but I don't want to have to manually go in there and set an IP address for this machine. Also, when I'm on this network I only can do my admin duties when I'm in a certain range or with a certain IP address. So in that scenario I want to get a specific IP address, so I create a reservation for that machine, so that machine will get the same IP address every time it connects.

Then I have different options that I set. This could be things like a DNS server — most likely you're going to set a DNS server. The gateway — most likely you're going to set a gateway. A domain — many times we set a domain. And there are several other options that we can set on our DHCP server, so that this is information that gets handed out to the machine when it connects, so that way it can dynamically get some of this information.

Recap

We covered that client-server relationship. We got a little bit into the process and how it sends this discovery and offer and the request and the acknowledgment, so it sends this back and forth to confirm that the machine gets an IP address that's unique in the network. And then we talked about some of the components, like the scope and the lease time, that go into configuring DHCP.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →