< Home

dhcp option82 insert enable

Function

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

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

Format

dhcp option82 insert enable

undo dhcp option82 insert enable

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

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

This command is used to configure Option 82 only on the interface on which DHCP relay is configured.

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 interface named Vlanif 1.

<sysname> system-view
[sysname] interface Vlanif 1
[sysname-Vlanif1] dhcp option82 insert enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >