< Home

dhcp option82 rebuild enable interface

Function

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

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

Format

dhcp option82 rebuild enable interface interface-type interface-number

undo dhcp option82 rebuild 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 cannot be inserted to the DHCP message.

The dhcp option82 rebuild enable interface command is only used to insert Option 82 into DHCP messages on the interface on which DHCP relay is configured.

After the dhcp option82 rebuild command is configured, insert the Option 82 into DHCP messages if the original DHCP message is not appended with Option 82. If the original DHCP message is appended with Option 82, remove the original Option 82 and insert new Option 82 information.

Example

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

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