Courses Job Ready Program Fresher Trainings AI For Class 7 to 12 Corporate Training Placements Tutorials
Free Learning Resources

IT Tutorials & Interview Prep

Free guides, interview Q&As, and job responsibility breakdowns — curated by industry veterans to help you crack MNC interviews

190+
Tutorial Articles
14
Topic Categories
100%
Free to Read
← Back to Learning Hub

AZ-800: Day 6 —DHCP Server

Learning Hub Last Updated: Jul 24, 2026

Key Points, Definitions, Diagrams, Term Differences & Q&A

Figure 1: The DORA process — Discover, Offer, Request, Acknowledge

1. 25 Most Important Key Points

  • DHCP (Dynamic Host Configuration Protocol) is a client-server protocol that automatically assigns IP addresses and network settings to devices.
  • A DHCP server provides an IP Address, Subnet Mask, Default Gateway, and DNS Server automatically, without manual configuration.
  • Without DHCP, manual IP configuration risks duplicate IPs, wrong subnet masks, incorrect gateways, and heavier administrative work.
  • DHCP centralizes and automates TCP/IP configuration, reducing human error and simplifying network administration.
  • DHCP keeps track of assigned addresses, which helps prevent the same IP being handed to more than one device.
  • DHCP is especially efficient in large, enterprise-scale networks like offices, colleges, and data centers with many connecting devices.
  • DHCP supports mobility by automatically assigning a new IP address whenever a laptop or mobile device joins a different network.
  • A DHCP Relay Agent forwards DHCP broadcast requests across routers, letting a single central DHCP server serve multiple subnets.
  • DHCP architecture is client-server: the DHCP Server assigns and manages addresses, while the DHCP Client requests and uses them.
  • A DHCP Scope is the range of IP addresses a server can hand out on a given network, along with subnet mask, gateway, DNS, and lease duration.
  • DORA is the four-step DHCP communication process: Discover, Offer, Request, and Acknowledge.
  • DHCP uses UDP port 67 on the server side and UDP port 68 on the client side.
  • An Exclusion Range marks IP addresses inside a scope that DHCP should never assign automatically, reserving them for static devices.
  • A Reservation assigns a fixed IP address to a specific device based on its MAC address, while still keeping it under centralized DHCP management.
  • Lease Duration defines how long a client may use its assigned IP before renewal is required; the typical default is 8 days.
  • Short lease durations suit high-turnover environments (public Wi-Fi, airports, hotels); long leases suit stable environments (offices, enterprises).
  • A client attempts lease renewal automatically once roughly half of the lease duration has elapsed.
  • DHCP Options deliver extra configuration automatically — Option 003 (Router/Gateway), Option 006 (DNS Server), and Option 015 (DNS Suffix) are the most common.
  • In Active Directory environments, a DHCP server must be authorized before it's allowed to assign addresses, which blocks rogue DHCP servers.
  • A newly configured scope must be activated, or it will sit idle and never hand out IP addresses to clients.
  • APIPA (Automatic Private IP Addressing, 169.254.x.x) is auto-assigned to a client when no DHCP server can be reached.
  • Scope Exhaustion happens when every address in a scope is already leased out, blocking new devices from obtaining one.
  • An IP Address Conflict occurs when two devices end up using the same IP, often due to static addresses overlapping the DHCP range.
  • DHCP Failover uses two DHCP servers together for high availability — if one goes down, the other keeps assigning addresses without interruption.
  • DHCP-DNS Integration lets DNS records update automatically whenever a client receives a new IP, keeping name resolution accurate with less manual DNS work.

Figure 2: Anatomy of a DHCP Scope — exclusion range, dynamic pool, and reservation

2. 20 Definitions with Day-to-Day Examples

DHCP (Dynamic Host Configuration Protocol)

Definition: A client-server network protocol that automatically assigns IP addresses and other TCP/IP settings to devices on a network.

Day-to-Day Example: Like an automated check-in desk at a hotel that assigns you a room number the moment you arrive, instead of you picking and fighting over a room yourself.

DHCP Server

Definition: The system responsible for assigning IP addresses, managing scopes, controlling lease duration, and providing network configuration to clients.

Day-to-Day Example: Like the hotel's front-desk manager who actually holds the master key list and decides which room each guest gets.

DHCP Client

Definition: Any device — computer, laptop, phone, printer — that requests an IP address from a DHCP server.

Day-to-Day Example: Like a guest walking up to the front desk asking, "Do you have a room available for me?"

DHCP Scope

Definition: A defined range of IP addresses, along with subnet mask, gateway, DNS, and lease settings, that a DHCP server can hand out on a specific network.

Day-to-Day Example: Like the hotel's block of rooms set aside for guest check-ins — the front desk can only assign rooms from within that block.

DORA Process

Definition: The four-step DHCP communication sequence — Discover, Offer, Request, Acknowledge — used to assign an IP address to a client.

Day-to-Day Example: Like the back-and-forth of checking into that hotel: you ask for a room, they offer one, you accept it, and they confirm your booking.

Discover (DHCP)

Definition: The first DORA step, where the client broadcasts a message asking if any DHCP server is available.

Day-to-Day Example: Like shouting into a hotel lobby, "Is anyone at the front desk who can give me a room?"

Offer (DHCP)

Definition: The second DORA step, where the DHCP server responds with an available IP address and related settings.

Day-to-Day Example: Like the front desk calling back, "We have Room 204 available, here are the details."

Request (DHCP)

Definition: The third DORA step, where the client accepts the offered IP address and formally requests it.

Day-to-Day Example: Like the guest replying, "Yes, I'll take Room 204, please book it for me."

Acknowledge / ACK (DHCP)

Definition: The fourth DORA step, where the server confirms the lease and the client can now use the assigned IP.

Day-to-Day Example: Like the front desk handing over the room key and confirming, "You're checked in, Room 204 is yours."

Exclusion Range

Definition: IP addresses inside a scope that DHCP is told never to assign automatically, kept aside for static or manual configuration.

Day-to-Day Example: Like a hotel keeping a few rooms permanently blocked off for staff use, never handed out to guests at check-in.

Reservation

Definition: A configuration that always gives the same IP address to one specific device, identified by its MAC address.

Day-to-Day Example: Like a hotel's VIP guest who always gets assigned the exact same room every time they visit, even though check-in is still handled by the front desk.

Lease Duration

Definition: The length of time a client is allowed to keep an assigned IP address before it must renew or release it.

Day-to-Day Example: Like a hotel booking that's only valid for a set number of nights before you need to extend your stay.

DHCP Options

Definition: Extra configuration values a DHCP server sends to clients automatically, such as gateway, DNS server, or DNS suffix.

Day-to-Day Example: Like the welcome folder left in a hotel room that lists the Wi-Fi password, restaurant hours, and local directions, all handed over without you asking.

DHCP Authorization

Definition: The Active Directory requirement that a DHCP server be approved before it's allowed to assign IP addresses in the domain.

Day-to-Day Example: Like a hotel chain requiring every branch to be officially registered under its brand before it can issue room keys to guests.

APIPA (Automatic Private IP Addressing)

Definition: A fallback IP address in the 169.254.x.x range that Windows assigns itself when it can't reach any DHCP server.

Day-to-Day Example: Like a guest who can't reach the front desk and ends up sitting in the lobby with a temporary visitor badge instead of a real room key.

Scope Exhaustion

Definition: A situation where every IP address in a scope has already been leased out, leaving nothing available for new clients.

Day-to-Day Example: Like a fully booked hotel turning away new guests because every room in that block is already occupied.

IP Address Conflict

Definition: A situation where two devices end up using the same IP address at the same time, disrupting communication.

Day-to-Day Example: Like two guests being handed keys to the exact same hotel room by mistake, both trying to use it at once.

DHCP Relay Agent

Definition: A component that forwards DHCP broadcast requests from one subnet to a DHCP server on a different subnet.

Day-to-Day Example: Like a courier who carries a guest's room request from a small satellite check-in counter over to the main hotel's central booking office.

DHCP Failover

Definition: A high-availability setup using two DHCP servers, so if one fails the other continues assigning addresses without interruption.

Day-to-Day Example: Like a hotel having a backup front-desk system ready to take over instantly if the main check-in computer crashes.

DHCP-DNS Integration

Definition: A feature where DNS records update automatically whenever a DHCP client receives a new IP address.

Day-to-Day Example: Like the hotel directory automatically updating itself the moment a guest changes rooms, so staff can always find them under the right room number.

Figure 3: A DHCP Relay Agent forwarding requests across subnets to a central server

Figure 4: DHCP Troubleshooting Cheat Sheet

3. Differences Between Key Technical Terms (10)

1. Manual IP Configuration vs. DHCP (Automatic)

FeatureManual IP ConfigurationAutomatic Configuration (DHCP)
IP assignmentConfigured manuallyAssigned automatically
SpeedTime consumingFast and automatic
Conflict riskHigh chance of IP conflictPrevents IP conflicts
ScalabilityDifficult in large networksEasy management at scale
Typical useServers, printers, network devicesComputers, laptops, mobile/enterprise users


 

2. DHCP Server vs. DHCP Client

FeatureDHCP ServerDHCP Client
RoleAssigns IPs, manages scopes and leasesRequests and uses an assigned IP
ControlsScope, exclusions, reservations, optionsLocal network configuration
ExampleWindows Server DHCP roleComputer, laptop, phone, printer


 

3. Exclusion Range vs. Reservation

FeatureExclusion RangeReservation
PurposeKeeps specific IPs out of the assignable poolAlways gives one device the same IP
Based onA defined IP sub-rangeThe device's MAC address
Still managed by DHCP?No, address is skipped entirelyYes, still leased through DHCP
Typical useStatic devices, routers, firewallsPrinters, servers, CCTV, network devices


 

4. Short Lease Duration vs. Long Lease Duration

FeatureShort Lease DurationLong Lease Duration
Best forHigh device turnoverStable, long-connected devices
Example environmentsPublic Wi-Fi, airports, hotelsOffices, enterprise networks, data centers
BenefitFaster reuse of IP addressesReduced DHCP traffic, stable assignment


 

5. DORA Process Steps Compared

AspectDiscoverOfferRequestAcknowledge
Sent byClientServerClientServer
TypeBroadcastBroadcast/UnicastBroadcastBroadcast/Unicast
PurposeFind a DHCP serverPropose an IP + settingsAccept the offered IPConfirm the lease


 

6. DHCP Options Compared

OptionPurposeExample
Option 003Router / Default Gateway192.168.1.1
Option 006DNS Server192.168.1.2
Option 015DNS Domain Suffixcompany.local


 

7. APIPA vs. Normal DHCP IP Assignment

FeatureAPIPANormal DHCP Assignment
IP range169.254.x.xDefined by the DHCP scope
Assigned byThe client itself (self-assigned)The DHCP server
MeaningDHCP communication has failedDHCP communication succeeded
Internet access?Not functionalFully functional


 

8. Scope Exhaustion vs. IP Address Conflict

FeatureScope ExhaustionIP Address Conflict
What happensNo addresses left to assignTwo devices share one address
Common causeSmall range, long leases, unused devices holding leasesStatic IP overlapping the DHCP range, bad reservation
FixIncrease range, shorten lease, clean up leasesFix exclusions, correct overlapping static IPs


 

9. DHCP Relay Agent vs. Separate DHCP Server per Subnet

FeatureDHCP Relay AgentSeparate DHCP Server per Subnet
Number of servers neededOne central serverOne server per subnet
AdministrationCentralized, easierDistributed, more overhead
How broadcasts are handledForwarded across routersNot needed — server is local to the subnet


 

10. DHCP Troubleshooting Commands Compared

CommandPurpose
ipconfig /allDisplays complete TCP/IP configuration and DHCP/lease status
ipconfig /releaseReleases the current IP address from the client
ipconfig /renewRequests a new IP address from the DHCP server
pingChecks basic network connectivity, e.g. to the gateway
nslookupTests DNS name resolution for a given domain

 

4. Theoretical Questions (15)

Q1. What is DHCP, and what does it provide to clients?

Answer: DHCP (Dynamic Host Configuration Protocol) is a client-server protocol that automatically assigns network settings — IP address, subnet mask, default gateway, and DNS server — to devices connecting to a network.

Q2. Why is DHCP required in networking?

Answer: Manual IP configuration risks duplicate addresses, wrong subnet masks, incorrect gateways, and heavy administrative effort, especially at scale; DHCP automates this and reduces human error.

Q3. What are the main benefits of DHCP in enterprise networks?

Answer: DHCP provides reliable IP configuration, reduces administrative workload, centralizes TCP/IP settings, prevents IP conflicts, scales well for large networks, and supports mobile and wireless devices.

Q4. What is a DHCP Scope, and what does it define?

Answer: A DHCP Scope is a range of IP addresses a server can assign on a given network. It defines the starting/ending IP, subnet mask, gateway, DNS settings, and lease duration.

Q5. What is the DORA process?

Answer: DORA is the four-step DHCP communication process: Discover (client searches for a server), Offer (server proposes an IP), Request (client accepts it), and Acknowledge (server confirms the lease).

Q6. What UDP ports does DHCP use, and for what?

Answer: DHCP uses UDP port 67 for the DHCP server and UDP port 68 for the DHCP client.

Q7. What is the difference between Exclusion Range and Reservation?

Answer: An Exclusion Range removes specific IPs from the assignable pool entirely for static use, while a Reservation keeps a device under DHCP management but always gives it the same IP based on its MAC address.

Q8. What is Lease Duration, and how does renewal work?

Answer: Lease Duration defines how long a client may keep an assigned IP. Around the halfway point of the lease, the client automatically contacts the server to renew it; if renewal fails, the client retries.

Q9. What are DHCP Options, and name three common ones with their purpose?

Answer: DHCP Options deliver extra configuration automatically. Common ones are Option 003 (default gateway), Option 006 (DNS server), and Option 015 (DNS domain suffix).

Q10. Why must a DHCP server be authorized in Active Directory?

Answer: Authorization prevents unauthorized or rogue DHCP servers from handing out incorrect IP configurations; only authorized servers are allowed to assign addresses in the domain.

Q11. What happens if a DHCP scope is not activated?

Answer: An inactive scope will not distribute any IP addresses — clients requesting an address from that scope will simply not receive one until it's activated.

Q12. What is APIPA, and when does a client receive an APIPA address?

Answer: APIPA (Automatic Private IP Addressing) is a self-assigned address in the 169.254.x.x range that Windows uses when a client cannot reach any DHCP server.

Q13. What is Scope Exhaustion, and what causes it?

Answer: Scope Exhaustion occurs when every IP address in a scope is already leased out. It's typically caused by a small IP range, too many devices, long lease durations, or unused devices still holding leases.

Q14. What is a DHCP Relay Agent, and why is it needed?

Answer: A DHCP Relay Agent forwards DHCP broadcast requests across routers to a central DHCP server, since broadcasts normally don't cross subnet boundaries — this lets one server support multiple subnets.

Q15. What is DHCP Failover, and what problem does it solve?

Answer: DHCP Failover uses two DHCP servers together for high availability; if one server fails, the other keeps assigning IP addresses, avoiding interruption to network communication.

5. Scenario-Based Questions (8)

Q1. A user has no internet access and their IP shows as 169.254.x.x. What's going on, and what would you check?

Answer: This is an APIPA address, meaning the client failed to reach a DHCP server. Check whether the DHCP server or service is down, whether the network cable/switch is functioning, and try ipconfig /release then ipconfig /renew.

Q2. A new device can't get an IP address, but existing devices are working fine. What is the likely cause?

Answer: The DHCP scope is likely exhausted — all available addresses are already leased. Solutions include increasing the IP range, shortening the lease duration, or removing unused/stale leases.

Q3. A printer needs to always receive the exact same IP address through DHCP. What feature should be configured?

Answer: Configure a DHCP Reservation using the printer's MAC address, so it always receives the same IP while still being managed centrally through DHCP.

Q4. A company has multiple subnets but only one central DHCP server. How can clients on every subnet still get IP addresses?

Answer: Configure a DHCP Relay Agent on each subnet's router to forward DHCP broadcast requests to the central DHCP server, so one server can support all subnets.

Q5. DHCP is installed in an Active Directory environment, but clients still aren't receiving IP addresses. What could be wrong?

Answer: The DHCP server is likely not authorized in Active Directory. Only authorized DHCP servers are permitted to assign IP addresses within a domain environment.

Q6. A client can ping a server's IP address successfully but can't reach it by server name. What should be checked?

Answer: This points to a DNS issue — check the DNS server configuration, DHCP Option 006 (DNS Server), DNS service status, and test resolution with nslookup.

Q7. A hotel Wi-Fi network has devices constantly connecting and disconnecting. Should lease duration be short or long, and why?

Answer: A short lease duration should be used so that IP addresses from disconnected guests are freed up and can be reused quickly by new devices checking in.

Q8. A company wants DHCP service to continue running even if one DHCP server goes down. What should be implemented?

Answer: DHCP Failover should be implemented using two DHCP servers, so if one fails, the other continues assigning IP addresses without interrupting the network.