dhcpv6 option-18 rebuild self-define send-to-server

Function

The dhcpv6 option-18 rebuild self-define send-to-server command enables a device to insert the self-defined Option 18 attribute into a Relay-forward message to be sent to the DHCPv6 server.

The undo dhcpv6 option-18 rebuild self-define send-to-server command disables the function.

By default, a device is disabled from inserting the Option 18 attribute into a Relay-forward message to be sent to the DHCPv6 server based on the self-defined OSP format.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcpv6 option-18 rebuild self-define self-define-value send-to-server

undo dhcpv6 option-18 rebuild self-define self-define-value send-to-server

Parameters

Parameter Description Value
self-define-value

Specifies a user-defined Option 18 attribute (interface ID), which carries access location information.

The value is a string of 1 to 64 characters.

Views

BAS interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

When IPv6 addresses are assigned from a remote IPv6 address pool, the device is disabled from inserting the self-defined Option 18 attribute into a Relay-forward message to be sent to the DHCPv6 server by default. To enable the device to insert the self-defined Option 18 attribute into a Relay-forward message to be sent to the DHCPv6 server, run the dhcpv6 option-18 rebuild self-define send-to-server command. After this command is run, the device inserts the Option 18 attribute based on the following format:

Format of the Option 18 attribute: <interface>interface description:outer VLAN ID.inner VLAN ID

Interface description (interface ID) supports self-defined character strings.

Configuration Impact

The dhcpv6 option-18 rebuild self-define send-to-server command takes effect in real time. The contents of the Option 18 attribute inserted in the Relay-forward messages sent to the DHCPv6 server are different before and after the configurations are added or deleted.

Precautions

In VS mode, this command is supported only by the admin VS.

The dhcpv6 option-18 rebuild self-define <self-define-value> send-to-server command is configured in the BAS interface view, whereas the dhcpv6 relay option-insert interface-id mode { cn-telecom | tr-101 } and dhcpv6 relay option-insert mode type1 commands are configured in the interface view. If the commands configured in the two views are both run, the command configured in the BAS interface view takes effect.

Example

# Enable the device to insert the self-defined Option 18 attribute into the Relay-forward messages to be sent to the DHCPv6 server.
<HUAWEI> system-view
[~HUAWEI] interface Eth-Trunk 100.21
[*HUAWEI-Eth-Trunk100.21] commit
[*HUAWEI-Eth-Trunk100.21] bas
[~HUAWEI-Eth-Trunk100.21-bas] access-type layer2-subscriber
[*HUAWEI-Eth-Trunk100.21-bas] commit
[~HUAWEI-Eth-Trunk100.21-bas] dhcpv6 option-18 rebuild self-define HUAWEI send-to-server
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >