dhcp option82 subscriber-id insert enable

Function

The dhcp option82 subscriber-id insert enable command enables a DHCP relay agent to insert the Option 82 Subscriber-ID into DHCP request packets on a specified interface.

The undo dhcp option82 subscriber-id insert enable command disables the function.

By default, a DHCP relay agent is disabled from inserting the Option 82 Subscriber-ID into DHCP request packets on a specified interface.

Format

dhcp option82 subscriber-id insert enable self-define self-define-value

undo dhcp option82 subscriber-id insert enable [ self-define self-define-value ]

Parameters

Parameter Description Value
self-define self-define-value

Specifies a user-defined character string of Option 82 suboption6 (Subscriber-ID) to be inserted into DHCP request packets.

The value is a string of 1 to 251 case-sensitive characters. Letters, digits, and special characters are supported.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

To enable a DHCP relay agent to insert the Option 82 Subscriber-ID into DHCP request packets on a specified interface, run the dhcp option82 subscriber-id insert enable command. The Option 82 Subscriber-ID carries Internet service provider (ISP) information, allowing the DHCP server to assign addresses and other parameters based on the ISP information if the server supports the Subscriber-ID sub-option.

Example

# Enable a DHCP relay agent to insert the Option 82 Subscriber-ID hwformat into DHCP request packets on Eth-Trunk1.
<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] dhcp option82 subscriber-id insert enable self-define hwformat
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >