Networking

What is DHCP and how does it work? DORA explained

How DHCP gives a device its IP address, gateway and DNS servers automatically: the four-message DORA exchange, leases, reservations and common mistakes.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

DHCP, explained by cats. Kitty joins a network. She needs An IP address. Without one, she can’t talk to anyone. No internet. No tuna. So Kitty asks loudly: ‘Can I have an IP?’ That shout goes to the DHCP server the cat in charge of handing out addresses.

The DHCP cat replies: ‘Here’s an IP. Here’s the gateway. Here’s the DNS.’ Kitty accepts. Says thanks. Now she’s officially on the network. No manual setup. No typing numbers by paw. That’s DHCP. automatic address assignment so cats can join the network and start meowing immediately.