The dhcpv6 relay option-insert command enables a DHCPv6 relay agent to add relay options to DHCPv6 messages.
The undo dhcpv6 relay option-insert command disables a DHCPv6 relay agent from adding relay options to DHCPv6 messages.
By default, DHCPv6 relay agents do not add relay options to DHCPv6 messages.
dhcpv6 relay option-insert { interface-id mode { cn-telecom | tr-101 | cn-telecom-inherit } | remote-id | subscriber-id }
dhcpv6 relay option-insert { interface-id mode self-define opt18Text | remote-id mode self-define opt37Text }
undo dhcpv6 relay option-insert { interface-id | remote-id | subscriber-id }
Parameter | Description | Value |
---|---|---|
interface-id mode |
Adds the Interface-ID option to DHCPv6 messages. |
- |
cn-telecom |
Adds the Interface-ID option in the cn-telecom format to DHCPv6 messages. |
- |
tr-101 |
Adds the Interface-ID option in the TR101 format to DHCPv6 messages. |
- |
cn-telecom-inherit |
Adds the Interface-ID option in the format inherited from cn-telecom to DHCPv6 messages. |
- |
remote-id mode |
Adds the Remote-ID option to DHCPv6 messages. |
- |
subscriber-id |
Adds the Subscriber-ID option to DHCPv6 messages. |
- |
self-define opt18Text |
Adds the Remote-ID option in a self-defined format to DHCPv6 messages. |
The value is a string of 1 to 255 characters. The string can contain letters, digits, underscores (_), and periods (.). |
self-define opt37Text |
Adds the Remote-ID option in a self-defined format to DHCPv6 messages. |
The value is a string of 1 to 255 characters. The string can contain letters, digits, underscores (_), and periods (.). |
100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Sub-interface view
Usage Scenario
DHCPv6 relay Interface-ID option, Subscriber-ID option, and Remote-ID option carry detailed user information for address allocation and parameter configuration. After the dhcpv6 relay option-insert command is run on an inbound interface, the interface constructs a Relay-Forward message based on the received Request message and encapsulates DHCPv6 options to the Relay-Forward message.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] dhcpv6 relay option-insert subscriber-id
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] dhcpv6 relay option-insert remote-id
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] dhcpv6 relay option-insert interface-id mode cn-telecom