DHCP: Dynamic Host Configuration Protocol
- Networking Fundamentals & OSI Model
- TCP/IP Model
- Network Topologies
- IP Addressing & Subnetting
- Routing Algorithms & Protocols
- Switching Concepts
- Transport Layer Protocols (TCP & UDP)
- Application Layer Protocols
- Network Security & Firewalls
- Wireless Networking & Wi-Fi
- Network Address Translation (NAT)
- DNS Deep Dive
- Congestion Control & Flow Control
- Error Detection & Correction
- Network Devices
- VPN & Tunneling
- Load Balancing & CDN Networking
- Socket Programming
- Network Troubleshooting Tools
- Physical Layer & Transmission Media
- Data Link Layer & MAC Addressing
- Ethernet Protocol
- ARP (Address Resolution Protocol)
- ICMP Protocol
- Unicast, Multicast, Broadcast and Anycast
- Proxy Servers
- Port Numbers Reference
- Network Performance Metrics
- Quality of Service (QoS)
- Software-Defined Networking (SDN)
- HTTP/2 and HTTP/3 Overview
- 5G and Mobile Networks
- IoT Networking Basics
- VoIP Networking Basics
The Problem: Manually Assigning IP Addresses Doesn't Scale
Every device on a network needs a unique IP address, a subnet mask, and usually a default gateway and DNS server address to function correctly. Manually typing this into every laptop, phone and printer that joins a network would be impractical - DHCP automates the entire process.
What DHCP Actually Provides
DHCP (Dynamic Host Configuration Protocol) automatically hands a new device everything it needs to join a network the moment it connects, with zero manual configuration required from the user.
The Four-Step DORA Process
Client DHCP Server
|------- DISCOVER -------------->| "Is any DHCP server out there?"
|<------ OFFER --------------------| "Here's an available address: 192.168.1.50"
|------- REQUEST ----------------->| "I'd like to use that address"
|<------ ACKNOWLEDGE --------------| "Confirmed - it's yours"This exchange is commonly remembered by the acronym DORA: Discover, Offer, Request, Acknowledge.
What Information Gets Assigned
| Setting | Purpose |
|---|---|
| IP address | The device's unique identifier on the network |
| Subnet mask | Defines which addresses are on the local network |
| Default gateway | The router used to reach other networks |
| DNS server | Where to send domain name lookups |
Why Addresses Are "Leased," Not Permanently Assigned
DHCP hands out addresses for a limited lease time rather than forever. A device must periodically renew its lease to keep using the same address, and if a device disconnects and never renews, its address eventually becomes available again for another device - preventing addresses from being permanently locked to devices that are no longer even on the network.