< Home

display dhcp option82 configuration

Function

The display dhcp option82 configuration command displays the DHCP Option 82 configuration.

Format

display dhcp option82 configuration [ vlan vlan-id | interface interface-type interface-number ]

Parameters

Parameter

Description

Value

vlan vlan-id

Displays the DHCP Option 82 configuration in a specified VLAN.

The value is an integer that ranges from 1 to 4094.

interface interface-type interface-number

Displays the DHCP Option 82 configuration on a specified interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The Option 82 field records the location of a DHCP client. A device inserts the Option 82 field to a DHCP Request message to notify the DHCP server of the DHCP client location. The DHCP server can properly assign an IP address and other configurations to the DHCP client, ensuring DHCP client security.

After the Option 82 field is inserted to a DHCP message, run the display dhcp option82 configuration command to display the DHCP Option 82 configuration.

Example

# Display all the DHCP Option82 configurations.

<HUAWEI> display dhcp option82 configuration
#                                                                               
dhcp option82 vendor-specific format vendor-sub-option 1 ascii 22               
#                                                                               
interface GigabitEthernet0/0/1                                                 
 dhcp option82 subscriber-id format ascii 222                                   
 dhcp option82 insert enable                                                    
 dhcp option82 encapsulation circuit-id                                 
 dhcp option82 append vendor-specific                                           
 dhcp option82 circuit-id format common                                         
# 
Table 1 Description of the display dhcp option82 configuration command output

Item

Description

interface ifn

Option 82 configuration on interface ifn.

dhcp option82 vendor-specific format vendor-sub-option i ascii text1

The Sub9 of the old format is inserted into the Option 82 field of DHCP messages.

To specify the parameter, run the dhcp option82 vendor-specific format command.

dhcp option82 subscriber-id format ascii text2

The Sub6 suboption is inserted into the Option 82 field of DHCP messages.

To specify the parameter, run the dhcp option82 subscriber-id format command.

dhcp option82 insert enable

The function of inserting Option 82 to DHCP messages is enabled and the insertion method is configured:

  • dhcp option82 rebuild enable: Rebuild mode
  • dhcp option82 insert enable: Insert mode

To specify the parameter, run the dhcp option82 enable command.

dhcp option82 encapsulation circuit-id The suboption inserted into the Option 82 field of DHCP messages is configured.

To specify the parameter, run the dhcp option82 encapsulation command.

dhcp option82 append vendor-specific

The Sub9 of the new format is inserted into the Option 82 field of DHCP messages.

To specify the parameter, run the dhcp option82 append vendor-specific command.

dhcp option82 circuit-id format common Format of the circuit-id suboption.

To specify the parameter, run the dhcp option82 format command.

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