if-match ipv6 next-header

Function

The if-match ipv6 next-header command configures a matching rule for complex traffic classification based on the value of the next IPv6 header.

The undo if-match ipv6 next-header command cancels the configuration.

By default, the matching rule for complex traffic classification based on the value of the next IPv6 header is not configured in traffic classifier view

Format

if-match ipv6 next-header header-number first-next-header

undo if-match ipv6 next-header header-number first-next-header

Parameters

Parameter Description Value
header-number

Specifies the value of the next header, which indicates the type of the header following the basic header.

The value is an integer ranging from 0 to 255.

first-next-header

Indicates that header-number is the value of the first next header of an IPv6 packet.

-

Views

Traffic classifier view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To perform the traffic policy based on the value of the next IPv6 header, you can run this command to configure a matching rule for complex traffic classification based on the value of the next IPv6 header. Then, you can configure the traffic behavior and traffic policy, and apply the policy to interfaces.

Prerequisites

A traffic classifier is configured in the system view and the traffic classifier view is displayed.

Configuration Impact

The traffic action in the traffic behavior bound to the traffic classifier is performed for the traffic matching the specified value of the next IPv6 header.

Follow-up Procedure

You need to configure the traffic behavior and traffic policy, bind the traffic behavior to the traffic classifier in the traffic policy, and apply the traffic policy to interfaces.

Precautions

You can configure more than one matching rules to match the next IPv6 header in one traffic classifier.

Example

# Define the traffic classifier class1. Set the value of the next IPv6 header matching the traffic classifer class1 to 43.
<HUAWEI> system-view
[~HUAWEI] traffic classifier class1
[*HUAWEI-classifier-class1] if-match ipv6 next-header 43 first-next-header
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >