display dhcp option82

Function

The display dhcp option82 command displays the configuration of option 82 insertion.

Format

display dhcp option82 { interface { interface-type interface-number | interface-name } | vlan vlan-id interface { interface-type interface-number | interface-name } | bridge-domain bd-id }

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies the type and number of an interface.

-

vlan vlan-id

Specifies a VLAN ID.

The value is an integer ranging from 1 to 4094.

bridge-domain bd-id

Specifies the BD ID.

The value is an integer ranging from 1 to 16777215.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
dhcp read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configuration of option 82 insertion on GE 0/1/0.
<HUAWEI> display dhcp option82 configuration interface Gigabitethernet 0/1/0
#
interface Gigabitethernet0/1/0
 dhcp option82 insert enable
#
# Display Option 82 configurations in BD 10.
<HUAWEI> display dhcp option82 configuration bridge-domain 10
#
bridge-domain 10
 dhcp option82 rebuild enable
#
Table 1 Description of the display dhcp option82 command output
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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >