The dhcp option82 insert enable command enables a device to insert Option 82 into DHCP packets.
The undo dhcp option82 insert enable command disables a device from inserting Option 82 into DHCP packets.
By default, a device is disabled from inserting Option 82 into DHCP packets.
Usage Scenario
The Option field in a DHCP packet carries control information and parameters that are not defined in certain common protocols. The Option field consists of the Code, Length, and Value fields. The Option 82 field is an Option field with the Code value 82.
The Option 82 field contains the location information of DHCP hosts, such as information about login interface, VLAN, and address. The Option 82 field helps create DHCP snooping binding entries with accurate interface information. Based on the Option 82 field, the DHCP server assigns IP addresses and policies for DHCP clients. For example, the DHCP server assigns IP addresses in a network segment for the clients that log in from GE 0/1/1. The DHCP server assigns IP addresses in another network segment for the clients that log in from GE 0/1/2.Configuration Impact
Precautions
Only the device on which DHCP snooping or DHCP relay is configured can be enabled to insert Option 82 into DHCP packets.