NETLEARN
Lesson 03Network Basics

DHCP: Getting on the Network

Follow DHCP's four-message exchange: Discover, Offer, Request, Acknowledge. A lease gives a device an address plus options such as its gateway and DNS resolver.

Layer
Application · UDP/IPv4
Reference
RFC 2131
Steps
4
New deviceUDP · port 68
DHCP serverUDP · port 67
legendrequestresponsemessage in flight

Common misunderstandings

  • A DHCP server does not route your traffic. It supplies configuration; routers forward packets.
  • The DORA exchange describes initial configuration; renewals and relayed requests can follow different message paths.

Key notes

DORA
Discover, Offer, Request, Acknowledge is the familiar initial IPv4 exchange.
Lease
Addresses are leased for a period, then renewed or returned to the pool.
Options
DHCP can provide more than an address: gateway, DNS, subnet mask, and other options.