The suboption command configures vendor-defined DHCPv6 sub-options.
The undo suboption command deletes vendor-defined DHCPv6 sub-options.
By default, no vendor-defined DHCPv6 sub-option is configured.
suboption suboption-code { address ipv6-address &<1-4> | ascii ascii-string | hex hex-string }
undo suboption suboption-code
Parameter |
Description |
Value |
---|---|---|
suboption-code |
Specifies the code of the vendor-defined DHCPv6 sub-options. |
The value is an integer that ranges from 1 to 65535. |
address ipv6-address |
Specifies the vendor-defined option code as the IPv6 address type. |
The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format X:X:X:X:X:X:X:X. |
ascii ascii-string |
Specifies the vendor-defined option code as an ASCII character string. |
The value is a string of 1 to 255 characters. |
hex hex-string |
Specifies the vendor-defined option code as a hexadecimal string. |
The value is a hexadecimal numeral string with an even number of characters (such as aa or aaaa). The even number ranges from 2 to 128. |
Usage Scenario
The suboption command is used on DHCPv6 servers. Run the vendor-specific command to enter the vendor-defined mode. In this mode, configure the vendor-defined DHCPv6 options. The DHCPv6 device can carry vendor-defined options such as the TFTP server name and address, and the configuration file of the device.
The suboption command configures vendor-defined DHCPv6 sub-options.
Precautions
A maximum of 16 vendor-defined sub-options can be configured in the vendor-defined mode view.