Beginner Topic 14 of 50 Computer Networks
DHCP
Protocol automatically assigning addresses to hosts.
How it works
The Dynamic Host Configuration Protocol automatically gives devices the network settings they need: an IP address, subnet mask, default gateway, DNS servers and lease duration. A client broadcasts a Discover, a server offers an address, the client requests it and the server acknowledges, often remembered as DORA. Leases expire and are renewed, and address pools or reservations bind addresses to MAC addresses.
Step-by-step walkthrough
- The client broadcasts a Discover message.
- The server offers an address and settings.
- The client requests the offered address.
- The server acknowledges with a lease time.
- The client configures its IP, gateway and DNS server automatically.
Where it is used
Home routers, office networks, Wi-Fi hotspots and cloud virtual networks use DHCP, which saves manual configuration and avoids conflicts.
Common pitfall
A rogue DHCP server can redirect clients and cause attacks or outages. Exhausted pools leave new devices without addresses. Short leases create churn, while long leases waste addresses. Servers and infrastructure usually need static addresses or reservations. Use DHCP snooping on switches to block unauthorized servers.
Where it fits in the course
DHCP is topic 14 of 50 in Computer Networks, rated Beginner. It follows DNS. The next topic is HTTP.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is DHCP?
Where do people use DHCP?
What is the most common mistake with DHCP?
What should I learn before this topic?
How can I practice it?
Is DHCP hard to learn?
How long does it take to learn DHCP?
Which topics are related to DHCP?
What should I study after DHCP?
Related topics
- DNS (Computer Networks)
- HTTP (Computer Networks)
- Routers (Computer Networks)
- Ports and Sockets (Computer Networks)