The display dhcp option82 configuration command displays the configuration of option 82 insertion.
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number |
Specifies the type and number of an interface. |
- |
interface interface-name |
Specifies the name of an interface. |
- |
vlan vlan-id |
Specifies a VLAN ID. |
The value is an integer that ranges from 1 to 4094. |
bridge-domain bd-id |
Specifies the BD ID. |
The value is an integer that ranges from 1 to 16777215. |
Usage Scenario
The Option field in a DHCP packet carries control information and parameters that are not defined in certain common protocols. The Option field consists of the Code, Length, and Value fields. The Option 82 field is an Option field with the Code value 82.
The Option 82 field contains the location information of DHCP hosts, such as information about login interface, VLAN, and address. The Option 82 field helps create DHCP snooping binding entries with accurate interface information. Based on the Option 82 field, the DHCP server assigns IP addresses and policies for DHCP clients. For example, the DHCP server assigns IP addresses in a network segment for the clients that log in from GE 0/1/1. The DHCP server assigns IP addresses in another network segment for the clients that log in from GE 0/1/2. If you want to check the configuration of option 82 insertion, run the display dhcp option82 command.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display dhcp option82 configuration interface Gigabitethernet 0/1/0 # interface Gigabitethernet0/1/0 dhcp option82 insert enable #
<HUAWEI> display dhcp option82 configuration bridge-domain 10
#
bridge-domain 10
dhcp option82 rebuild enable
#
Item | Description |
---|---|
dhcp option82 insert enable | Whether option 82 insertion is enabled. |
dhcp option82 rebuild enable | Enables a device to forcibly insert Option 82 into DHCP packets. |
interface | Interface information. |
bridge-domain | Indicates the BD ID. |