The vendor-class partial-info command configures part of the vendor-class (DHCPv4 option60/DHCPv6 option16) attribute to identify services.
The undo vendor-class partial-info command restores the default setting.
By default, the whole vendor-class (DHCPv4 option60/DHCPv6 option16) attribute is used to identify services.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
cn |
Indicates that the system uses the cn-telecom format to identify services. |
- |
offset offset |
Configures the offset value of a vendor-class option to identify services. |
The value is an integer ranging from 1 to 254. |
length length |
Configures the field length of the vendor-class attribute to identify services. |
The value is an integer ranging from 1 to 254. |
sub-option option |
Configures the sub-option code of the vendor-class attribute to identify services. |
The value is an integer ranging from 1 to 255. |
sub-offset sub-offset |
Configures the offset value of a vendor-class sub-option to identify services. |
The value is an integer ranging from 1 to 254. |
sub-length sub-length |
Configures the field length of a vendor-class sub-option to identify services. |
The value is an integer ranging from 1 to 254. |
Usage Scenario
When service identification mode vendor-class command is configured in the service identification policy view and the system needs to use part of the vendor-class attribute to identify services, you can run the vendor-class partial-info command to obtain required information.
Prerequisites
Before configuring the command, run the service-identify-policy command in the system view to create a service identification policy and configure the keyword vendor-class using the service-identify.
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 running the command, you can obtain the vendor-class attribute information from the command output and then identify services based on other configuration principles in the service identification policy view. If the cn parameter is specified, the Login information in the sub-option code 31 of the vendor-class (DHCPv4 option 60/DHCPv6 option 16) is obtained based on the CN packet format. The domain name matching information is parsed in the Login information based on the mode configured in the AAA view for parsing a domain name from a user name. The service type name configured on the BRAS is then matched based on other parameters. By configuring parameters offset, length, sub-option, sub-offset, and sub-length, you can obtain information used to match services. Use the preceding CN format as an example, you can configure only the parameter offset 2 sub-option 31 sub-offset 44 sub-length 4. Specific procedures are as follows: after 2 bytes offset for enterprise codes, you can obtain sub-option 31, and then follows an offset of 44 bytes. The service name length is 4 bytes.Precautions
This command is supported only on the admin VS.
The function of the vendor-vlass partial-info command is the same to option60 partial-info. When the service identification keyword specified by the service-identify command is dhcp-option60, only the option60 partial-info command matching rules can be used. When the service identification keyword specified by the service-identify command is vendor-class, only the vendor-vlass partial-info command matching rules can be used.<HUAWEI> system-view [~HUAWEI] service-identify-policy test [~HUAWEI-service-identify-policy-test] undo service-identify [~HUAWEI-service-identify-policy-test] service-identify vendor-class [~HUAWEI-service-identify-policy-test] vendor-class partial-info cn