DHCP automatically assigns IP addresses to computers on a network. It uses a four-step process (DHCP discover, offer, request, and acknowledge) to lease IP addresses with default durations of 8 days. DHCP servers maintain address pools and can grant static reservations. Relay agents are required for DHCP to function across routers by forwarding broadcast packets as unicast.