DHCP
DHCP (Dynamic Host Configuration Protocol) lets a device automatically obtain an IP address, subnet mask, gateway, and DNS server information when it joins a network. That removes the need for humans to configure every device manually, which is why DHCP is fundamental in office Wi-Fi and enterprise networks.
βΆArchitecture Diagram
π ProcessDashed line animations indicate the flow direction of data or requests
In a network where laptops, phones, and printers constantly come and go, manually assigning IP addresses quickly turns into collisions and mistakes. Someone enters the wrong gateway or DNS setting and suddenly the internet stops working. Without a way for devices to obtain valid settings automatically at boot, operations do not scale.
In small early networks, operators could survive by typing static addresses into every device. As PCs and mobile devices multiplied, address collisions, misconfigurations, and operational overhead became the limiting factors. DHCP standardized lease-based automatic assignment to remove that burden and keep changing networks manageable.
A device broadcasts DHCP Discover, and a server responds with an Offer containing an available address and related settings. The device selects one with DHCP Request, and the server confirms the lease with ACK. Along the way the client receives not just an IP, but also the subnet mask, default gateway, and DNS server information, and it can renew the lease before expiration.
DHCP and DNS both reduce the amount of raw network information humans have to handle, but they solve different steps. DHCP gives a device its own IP address and gateway, while DNS translates the names that users type into destination IP addresses. DHCP is needed when the device first joins; DNS is needed when the device later looks up where to go.
DHCP fits Wi-Fi, office networks, and any environment where the set of connected devices changes often. For critical servers that must keep the same address, fixed addressing or reserved leases are usually needed alongside DHCP. If DHCP fails, new devices may connect to the network physically but still be unable to communicate correctly.