What Is Dynamic Host Configuration Protocol (DHCP?)

DHCP is a network protocol that automatically assigns IP addresses and other connection settings (such as subnet mask, default gateway, and DNS servers) to devices when they join a network. Instead of manually configuring every phone, laptop, or printer, a central DHCP server hands out temporary “leases” of these settings. This makes connecting to networks simple and scalable, from home routers to large enterprise or ISP networks.

DHCP is the automatic “address bookkeeper” that gives your devices the network details they need so you can get online without typing numbers by hand.


Key Points

  • Main Purpose: Automatically provide IP addresses and related network configuration to devices, eliminating manual setup.
     
  • How It Works: Uses a client–server model. When a device connects, it broadcasts a request; a DHCP server replies with an available address and settings for a limited time (the lease).
     
  • Four Basic Steps (DORA):
    1. Discover – Client looks for a DHCP server.
    2. Offer – Server proposes an IP address and settings.
    3. Request – Client accepts the offer.
    4. Acknowledge – Server confirms and finalizes the lease.
       
  • Allocation Methods:
    • Dynamic (temporary leases that can be reused).
    • Automatic (prefers to reassign the same address).
    • Manual/Static (administrator reserves a fixed address for a specific device).
       
  • Versions: Works with both IPv4 and IPv6 (DHCPv6). Most home routers include a built-in DHCP server.
     
  • Benefits: Convenience, reduced configuration errors, and efficient reuse of limited IP addresses.

Ergo, DHCP is the behind-the-scenes system that lets devices join a network automatically. It is essential for modern networking and is active by default on nearly every home and office router.