if-match ip-precedence

Function

The if-match ip-precedence command configures an IPv4-precedence-based or IPv6-precedence-based matching rule.

The undo if-match ip-precedence command deletes an IPv4-precedence-based or IPv6-precedence-based matching rule..

By default, the matching rule for complex traffic classification based on IP precedence is not configured in traffic classifier view

Format

if-match ip-precedence ip-precedence

if-match ipv6 ip-precedence ip-precedence

undo if-match ip-precedence ip-precedence

undo if-match ipv6 ip-precedence ip-precedence

Parameters

Parameter Description Value
ip-precedence

Specifies the value of IP precedence.

It is an integer ranging from 0 to 7.

ipv6

Specify IPv6.

-

Views

Traffic classifier view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To perform different traffic policies for different traffic classifiers according to the IP precedence of packets, you can run this command to configure a matching rule for complex traffic classification based on IP precedence. Then, you need to bind the traffic behavior to the traffic classifier in the 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 packets with the specified IP precedence.

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 a maximum of eight such rules for a traffic classifier. That is, one traffic classifier can match a maximum of eight levels of IP precedence, and the later configuration does not override the previous one.

After the configuration, the values of IP precedence are sorted in the order they are configured. A matching rule can be deleted only when all IP precedence values specified to be deleted are the same as those that are specified in the matching rule. The deletion order can be different from the configuration order.

The if-match ipv6 ip-precedence command is mutually exclusive with the match-type ipv6 qos-local-id enable command.

Example

# Configure a matching rule with the IPv4 precedence value being 1 in traffic classifier class1.
<HUAWEI> system-view
[~HUAWEI] traffic classifier class1
[*HUAWEI-classifier-class1] if-match ip-precedence 1
# Configure a matching rule with the IPv6 precedence value being 1 in traffic classifier class1.
<HUAWEI> system-view
[~HUAWEI] traffic classifier class1
[*HUAWEI-classifier-class1] if-match ipv6 ip-precedence 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >