liveBook · Manning

Dhcp

As explained in Fundamentals of Cybersecurity

The Dynamic Host Configuration Protocol is a network protocol that automatically assigns IP addresses and related configuration information to clients.

Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses to devices joining a network. Unlike a MAC address, which is embedded in hardware, an IP address is assigned by the network and can change when a device connects elsewhere. section 11.5.2

A network administrator can assign addresses manually, but doing so for hundreds or thousands of devices takes time and invites mistakes. DHCP makes routine address assignment easier and helps use available addresses efficiently. A DHCP server typically runs on a router, switch, or dedicated server. section 11.5.2

A device and DHCP server complete four steps, remembered as DORA:

  • Discover: The device asks whether a DHCP server is available. section 11.5.2
  • Offer: A server proposes an available IP address and other network settings. section 11.5.2
  • Request: The device accepts the proposed address and settings. section 11.5.2
  • Acknowledge: The server confirms the address assignment and finalizes the lease. section 11.5.2

Choosing between automatic and manual assignment

An organization may manually assign an address to a printer or server that must remain reachable at the same address. For large numbers of other devices, DHCP avoids configuring each address by hand. section 11.5.2

How Fundamentals of Cybersecurity covers it

How deep it goes
Explains the four-message DORA exchange and lease confirmation, but does not provide a configuration procedure.
Examples
Contrasts manually addressed servers and printers with large numbers of devices assigned addresses automatically.
What it assumes
Introduces MAC addresses and static versus dynamic IP assignment before describing DHCP.
What you can do after
Evaluate/understand when automatic address assignment is useful and trace a device’s four-step DHCP exchange.
How it connects
Connects DHCP to IP addresses, MAC addresses, static addressing, and DNS.

Also explained in

Compare how 2 books explain dhcp →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.