The vendor-class dhcpv6 command configures a mapping between the vendor-class attribute and a DHCPv6 option code as well as the offset value.
The undo vendor-class dhcpv6 command restores the default setting.
By default, the vendor-class attribute corresponds to DHCPv6 Option16 and the default offset value is 0.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
option-code option-code |
Specifies a DHCPv6 option code. Configures a mapping between the vendor-class attribute and a DHCPv6 Option code. |
The value is an integer ranging from 1 to 255. |
offset offset |
Specifies the offset value of the vendor-class attribute. |
The value is an integer ranging from 1 to 254. |
Usage Scenario
When the terminal does not carry the vendor-class information using DHCPv6 Option16, you can run the vendor-class dhcpv6 command to configure the mapping between the vendor-class attribute and a DHCPv6 option code.
Prerequisites
Before configuring the vendor-class dhcpv6 command on the BAS interface, enable BAS on the interface and configure Layer 2 or Layer 3 access mode.
Configuration Impact
If this command is configured for multiple times, only the last configuration takes effect. Users that have been online are not affected. Users that get online after the command is configured will be affected.
After the command is configured in the system view, all DHCPv6 users authenticated using the vendor-class attribute. In addition, this command can be configured only when all terminals use the same DHCPv6 option and offset value. The mapping between the vendor-class attribute and a DHCPv6 option code as well as the offset value can be configured on a BAS interface and the configuration takes effect on users that get online from the BAS interface.Precautions
This command is supported only on the admin VS.
If the vendor-class dhcpv6 command is run in the BAS interface view, the configuration takes effect for users accessing through the BAS interface.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/9.1 [*HUAWEI-GigabitEthernet0/1/9.1] commit [~HUAWEI-GigabitEthernet0/1/9.1] bas [~HUAWEI-GigabitEthernet0/1/9.1-bas] access-type layer2-subscriber [*HUAWEI-GigabitEthernet0/1/9.1-bas] commit [~HUAWEI-GigabitEthernet0/1/9.1-bas] vendor-class dhcpv6 option-code 17 offset 4
<HUAWEI> system-view [~HUAWEI] vendor-class dhcpv6 option-code 17 offset 4