< Home

dhcp option82 format (upgrade-compatible command)

Function

The dhcp option82 format command configures the format of the Option 82 field in DHCP messages.

Format

dhcp option82 [ circuit-id | remote-id ] format userdefined text

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can use the dhcp option82 format command to configure the format of the Option 82 field in DHCP messages.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >