< Home

suboption

Function

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.

Format

suboption suboption-code { address ipv6-address &<1-4> | ascii ascii-string | hex hex-string }

undo suboption suboption-code

Parameters

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.

Views

Vendor-defined mode view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Set Huawei-defined sub-option 10 to fc00:1::5 in the IPv6 address pool pool1 view.

<HUAWEI> system-view
[HUAWEI] dhcpv6 pool pool1
[HUAWEI-dhcpv6-pool-pool1] vendor-specific 2011
[HUAWEI-dhcpv6-pool-pool1-vs-2011] suboption 10 address fc00:1::5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >