The dhcp option82 format command configures the format of the Option 82 field in DHCP messages.
Parameter | Description | Value |
---|---|---|
circuit-id | Specifies the format of the circuit-id (CID). | - |
remote-id | Specifies the format of the remote-id (RID). | - |
userdefined text | Indicates the user-defined format of the Option 82 field. | text is the user-defined character string of the Option 82 field. |
You can use the dhcp option82 format command to configure the format of the Option 82 field in DHCP messages.
# Configure the user-defined string for the CID in the Option 82 field and use the hexadecimal format to encapsulate the CID type (0, indicating the hexadecimal format), length (excluding the length of the CID type and the length keyword itself), outer VLAN ID, slot ID (5 bits), subslot ID (3 bits), and port number (8 bits).
<HUAWEI> system-view [HUAWEI] dhcp option82 circuit-id format userdefined 0 %length %svlan %5slot %3subslot %8port