Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 311

DHCP

What is DHCP?

DHCPA UDP-based protocol (RFC 2131, ports 67/68) that automatically assigns IP addresses and network configuration parameters to clients joining a network.


The Dynamic Host Configuration Protocol, specified in RFC 2131 for IPv4 and RFC 8415 for IPv6 (DHCPv6), automates IP address assignment and the distribution of network parameters such as subnet mask, default gateway, DNS servers, NTP servers, and PXE boot options. The classic exchange is DORA: Discover, Offer, Request, Acknowledge, carried over UDP ports 67 (server) and 68 (client). Because the original protocol has no authentication, hostile DHCP servers on a LAN can hand out attacker-controlled gateway or DNS values - a rogue DHCP attack. Mitigations include DHCP snooping on switches, port-security, IP source guard, dynamic ARP inspection, and 802.1X-based admission control.

Examples

  1. 01

    A laptop joining Wi-Fi receives 192.168.1.45/24, gateway 192.168.1.1, and DNS 1.1.1.1 from the access point.

  2. 02

    An attacker connects a rogue DHCP server that points victims at a malicious DNS resolver.

Frequently asked questions

What is DHCP?

A UDP-based protocol (RFC 2131, ports 67/68) that automatically assigns IP addresses and network configuration parameters to clients joining a network. It belongs to the Network Security category of cybersecurity.

What does DHCP mean?

A UDP-based protocol (RFC 2131, ports 67/68) that automatically assigns IP addresses and network configuration parameters to clients joining a network.

How does DHCP work?

The Dynamic Host Configuration Protocol, specified in RFC 2131 for IPv4 and RFC 8415 for IPv6 (DHCPv6), automates IP address assignment and the distribution of network parameters such as subnet mask, default gateway, DNS servers, NTP servers, and PXE boot options. The classic exchange is DORA: Discover, Offer, Request, Acknowledge, carried over UDP ports 67 (server) and 68 (client). Because the original protocol has no authentication, hostile DHCP servers on a LAN can hand out attacker-controlled gateway or DNS values - a rogue DHCP attack. Mitigations include DHCP snooping on switches, port-security, IP source guard, dynamic ARP inspection, and 802.1X-based admission control.

How do you defend against DHCP?

Defences for DHCP typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for DHCP?

Common alternative names include: Dynamic Host Configuration Protocol.

Related terms