The dhcp option82 command configures the format of Option 82 in DHCP packets.
The undo dhcp option82 command restores the default format of Option 82 in DHCP packets.
By default, Option 82 in DHCP packets is in the type1 format.
Parameter | Description | Value |
---|---|---|
circuit-id format |
Option 82 suboption 1: circuit-id(CID), which is generally used to encapsulate the slot ID and port number. |
- |
remote-id format |
Option 82 suboption 2: remote-id (CID), which is generally used to encapsulate the MAC and VLAN information. |
- |
self-define self-define-value |
Specifies a user-defined DHCP Option 82 format. |
The value is a string of 1 to 251 case-sensitive characters, spaces not supported. |
100GE interface view, 10GE interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE Layer 2 sub-interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, Layer 2 sub-interface view, Sub-interface view
Usage Scenario
The option 82 contains the location information of DHCP clients, such as information about login interface, VLAN, and address. After the option 82 field is configured, the device can set up dynamic binding entries with accurate interface information. Based on the option 82 field, the DHCP server assigns IP addresses and policies for DHCP clients.
After a user-defined Option 82 format is configured, the device encapsulates the user-defined Option 82 format into packets.Prerequisites
Perform the following operations before running the command:
<HUAWEI> system-view [~HUAWEI] dhcp enable [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] dhcp option82 insert enable [*HUAWEI-GigabitEthernet0/1/1] dhcp option82 circuit-id format self-define Ethernet0/1/0:0.0HUAWEI