DHCP
DHCP provides automatic IP addresses and network configuration to devices.
01Why DHCP?
Without DHCP, you'd need to manually assign an IP to each device:
- 😰 Time waste
- 😰 Error risk
- 😰 IP conflicts
With DHCP:
- ✅ Automatic IP
- ✅ Quick setup
- ✅ Central management
02What DHCP Provides
| Information | Example |
|---|---|
| IP Address | 192.168.1.100 |
| Subnet Mask | 255.255.255.0 |
| Default Gateway | 192.168.1.1 |
| DNS Server | 8.8.8.8 |
| Lease Time | 24 hours |
03DORA Process
DHCP works in 4 steps (DORA):
1. Discover
code
Client → "Looking for IP!" → Broadcast
2. Offer
code
DHCP Server → "192.168.1.100 available" → Client
3. Request
code
Client → "I want 192.168.1.100" → Server
4. Acknowledge
code
Server → "OK, it's yours for 24 hours" → Client
04Summary
- DHCP = Automatic IP distribution
- DORA = Discover, Offer, Request, Acknowledge
- Lease = Temporary IP usage
- Router or server provides DHCP service