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.
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. |
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.