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.
The total length of all Option82 fields must be between 1 byte to 255 bytes. If their total length exceeds 255 bytes, some Option82 information will be lost.
There is no limit on the number of Option 82 fields configured on a device. However, a large number of Option 82 fields will occupy a lot of memory and slow down device processing. To ensure device performance, take into account the service requirements and device memory size when configuring Option 82 fields.
The system view is displayed.
View |
Steps |
---|---|
VLAN view |
|
Interface view |
|
BD view |
|
View |
Steps |
---|---|
System view |
|
Interface view |
|
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.
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.
Insert the Sub9 suboption of the new format into the Option 82 field of DHCP messages.
View |
Procedure |
---|---|
VLAN view |
|
Interface view |
|
By default, Sub9 suboption is not inserted into the Option 82 field of DHCP messages.
If the dhcp option82 append vendor-specific command has been run, whether the Sub9 of the old format can be inserted depends on the Option 82 insertion method (which is configured using the dhcp option82 enable command).
When the Option 82 insertion method is Insert, the Sub9 is not inserted.
When the Option 82 insertion method is Rebuild, the Sub9 is reconstructed and then inserted into Option 82.
View |
Steps |
---|---|
System view |
|
BD view |
|
VLAN view |
|
Interface view |
|