DHCP allows client devices to automatically receive IP addresses and network configuration from a server. It uses UDP and broadcasts packets to lease IP addresses. The DHCP server can assign addresses from scopes that define ranges. Addresses are leased for a duration, and clients renew leases before they expire to maintain connectivity. A relay agent can extend DHCP to devices across routers.