option

Function

The option command configures a DHCPv6 user-defined option.

The undo option command deletes a DHCPv6 user-defined option.

By default, the DHCPv6 user-defined option is not configured.

This command is supported only on the NetEngine 8000 F1A.

Format

option code { suboption sub-code { ipv6-address ipv6-address | string string-value } } &<1-16>

option code { ipv6-address { ipv6-address } &<1-2> | string string-value | hex hex-value } &<1-160>

undo option code

Parameters

Parameter Description Value
suboption sub-code

Specifies the code of a sub-option of an option.

The value is an integer ranging from 1 to 65535.

ipv6-address ipv6-address

Specifies an IPv6 address.

The value is a 32-bit hexadecimal number in the format of X:X::X:X.

string string-value

Specifies the string that is represented by the option code value.

The value is an integer that ranges from 1 to 128.

option code

Specifies the code of a user-defined option.

The value is an integer ranging from 15 to 65535, excluding 18-20, 23-26, and 37-38.

hex hex-value

Specifies the hexadecimal character string that is represented by the value of the option code.

The length of the hexadecimal string is an even number of characters, and the maximum length is 320 characters. You can input the characters without any spaces or in groups of two with a space in-between each group. For example, 80070000010A2C00FE and 80 07 00 00 01 0A 2C 00 FE are both acceptable.

Views

IPv6 address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipv6pool write

Usage Guidelines

Usage Scenario

When the device functions as a server, the device must provide parameters carried in common options, such as DNS, Preference, Rapid Commit, and Server Unicast, as well as other control information and parameters that can be carried in packets sent to clients. To configure a DHCPv6 user-defined option, run the option command and specify the meaning of the option in the command. Do not use this command to configure the common options, including DNS, Preference, Rapid Commit, and Server Unicast.

Configuration Impact

The option command takes effect for online users and users who go online after the command is configured.

After an option is configured, the device replies with the configured option to clients no matter whether the clients apply for the option.

Precautions

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

The option command cannot be configured in a remote address pool.

Example

# Configure a DHCPv6 option code as 80 and specify that the option code represents www.pcp.com.
<HUAWEI> system-view
[~HUAWEI] ipv6 pool huawei bas local
Info: Create an ipv6 pool.
[*HUAWEI-ipv6-pool-huawei] commit
[~HUAWEI-ipv6-pool-huawei] option 80 string www.pcp.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >