Skip to content

DHCP

DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to automatically assign IP addresses, subnet masks, gateways, DNS servers, and other network configuration parameters to devices on a network. Beyond basic IP allocation, DHCP services include relay functionality to forward DHCP requests across network segments, snooping capabilities to monitor and validate DHCP transactions for security purposes, and option 82 support for enhanced network visibility and control. These features enable centralized IP address management, prevent rogue DHCP servers, and provide detailed tracking of device network access patterns.

Diagram

Diagram

Classes

configuration (iosxe.devices)

NameTypeConstraintMandatoryDefault Value
dhcpClass[dhcp]No

dhcp (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
compatibility_suboption_link_selectionChoicecisco, standardNo
compatibility_suboption_server_overrideChoicecisco, standardNo
relay_information_trust_allBooleantrue, falseNo
relay_information_option_defaultBooleantrue, falseNo
relay_information_option_vpnBooleantrue, falseNo
snoopingBooleantrue, falseNo
snooping_information_option_format_remote_id_hostnameBooleantrue, falseNo
snooping_vlansListInteger[min: 1, max: 4095]No

Examples

iosxe:
devices:
- name: Device1
configuration:
dhcp:
compatibility_suboption_link_selection: cisco
compatibility_suboption_server_override: standard
relay_information_trust_all: true
relay_information_option_default: true
relay_information_option_vpn: true
snooping: true
snooping_information_option_format_remote_id_hostname: true
snooping_vlans:
- 10
- 20
- 100