Hi,
The Option 82 field records the location of a DHCP client, and is inserted into a DHCP Request message before being sent to the DHCP server. This allows the DHCP server to assign an IP address and other configurations to the DHCP client, facilitating DHCP client security.
Run system-view
The system view is displayed.
You can configure the device to insert the Option 82 field in a DHCP message in the interface view or VLAN view.
You can configure the format of the Option 82 field in the system or interface view. If the configuration is performed in the system view, the configuration takes effect for all interfaces on the device. If the configuration is performed in the interface view, the configuration takes effect only for the specified interface.
Run dhcp option82 subscriber-id format { ascii ascii-text | hex hex-text }
The Sub6 suboption is inserted into the Option 82 field of DHCP messages and the format of the Sub6 suboption is configured.
By default, the Sub6 suboption is not inserted into the Option 82 field of DHCP messages.
Insert the Sub9 suboption into the Option 82 field of DHCP messages.
The Sub9 suboption has old and new formats. The old format contains the vendor ID, for example, hwid. The new format does not contain the vendor ID.
Run the dhcp option82 vendor-specific format vendor-sub-option sub-option-num { ascii ascii-text | hex hex-text | ip-address ip-address &<1-8> | sysname } command to insert the Sub9 suboption of the old format to the Option 82 field of DHCP messages.
Insert the Sub9 suboption of the new format into the Option 82 field of DHCP messages.
Verifying the Configuration
I hope it helps.