< Home

dhcp option82 insert enable interface

Function

The dhcp option82 insert enable interface command enables a device to insert Option 82 into DHCP messages.

The undo dhcp option82 insert enable interface command prevents a device from adding Option 82 into DHCP messages.

Format

dhcp option82 insert enable interface interface-type interface-number

undo dhcp option82 insert enable interface interface-type interface-number

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface. -

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

By default, Option 82 is not inserted into DHCP messages.

The dhcp option82 insert enable interface command is used only for configuring Option 82 on the interface.

After the dhcp option82 insert enable command is configured, if the original message does not carry Option 82, Option 82 is appended to DHCP messages; if the message carries Option 82, Sub-option 9 is added to DHCP messages.

The dhcp option82 rebuild command has a higher priority than the dhcp option82 insert command. Running both the dhcp option82 insert and dhcp option82 rebuild commands on an interface equals running the dhcp option82 rebuild command on the interface.

Example

# Insert Option 82 into DHCP messages on Eth-Trunk 1 in VLAN 100.

<sysname>  system-view
[sysname] vlan 100
[sysname-vlan-100] dhcp option82 insert enable interface Eth-Trunk 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >