if-match dscp

Function

The if-match dscp command configures a filtering rule based on the DSCP value.

The undo if-match dscp command deletes the filtering rule based on the DSCP value.

By default, no filtering rule based on the DSCP value is configured.

Format

if-match dscp { greater-than | less-than | equal } { be | cs1 | af11 | af12 | af13 | cs2 | af21 | af22 | af23 | cs3 | af31 | af32 | af33 | cs4 | af41 | af42 | af43 | cs5 | ef | cs6 | cs7 | dscp-value }

if-match dscp greater-than { be | cs1 | af11 | af12 | af13 | cs2 | af21 | af22 | af23 | cs3 | af31 | af32 | af33 | cs4 | af41 | af42 | af43 | cs5 | ef | cs6 | cs7 | dscp-value } less-than { cs1 | af11 | af12 | af13 | cs2 | af21 | af22 | af23 | cs3 | af31 | af32 | af33 | cs4 | af41 | af42 | af43 | cs5 | ef | cs6 | cs7 | upper-dscp-value }

undo if-match dscp

undo if-match dscp { greater-than | less-than | equal } { be | cs1 | af11 | af12 | af13 | cs2 | af21 | af22 | af23 | cs3 | af31 | af32 | af33 | cs4 | af41 | af42 | af43 | cs5 | ef | cs6 | cs7 | dscp-value }

undo if-match dscp greater-than { be | cs1 | af11 | af12 | af13 | cs2 | af21 | af22 | af23 | cs3 | af31 | af32 | af33 | cs4 | af41 | af42 | af43 | cs5 | ef | cs6 | cs7 | dscp-value } less-than { cs1 | af11 | af12 | af13 | cs2 | af21 | af22 | af23 | cs3 | af31 | af32 | af33 | cs4 | af41 | af42 | af43 | cs5 | ef | cs6 | cs7 | upper-dscp-value }

Parameters

Parameter Description Value
greater-than

Matches traffic with the DSCP value being greater than the specified one.

-

less-than

Matches traffic with the DSCP value being smaller than the specified one.

-

equal

Matches traffic with the DSCP value being equal to the specified one.

-

be

BE(0). Specifies a re-marked DSCP type. The DSCP value is 0.

-

cs1

CS1(8). Specifies a re-marked DSCP type. The DSCP value is 8.

-

af11

AF11(10). Specifies a re-marked DSCP type. The DSCP value is 10.

-

af12

AF12(12). Specifies a re-marked DSCP type. The DSCP value is 12.

-

af13

AF13(14). Specifies a re-marked DSCP type. The DSCP value is 14.

-

cs2

CS2(16). Specifies a re-marked DSCP type. The DSCP value is 16.

-

af21

AF21(18). Specifies a re-marked DSCP type. The DSCP value is 18.

-

af22

AF22(20). Specifies a re-marked DSCP type. The DSCP value is 20.

-

af23

AF23(22). Specifies a re-marked DSCP type. The DSCP value is 22.

-

cs3

CS3(24). Specifies a re-marked DSCP type. The DSCP value is 24.

-

af31

AF31(26). Specifies a re-marked DSCP type. The DSCP value is 26.

-

af32

AF32(28). Specifies a re-marked DSCP type. The DSCP value is 28.

-

af33

AF33(30). Specifies a re-marked DSCP type. The DSCP value is 30.

-

cs4

CS4(32). Specifies a re-marked DSCP type. The DSCP value is 32.

-

af41

AF41(34). Specifies a re-marked DSCP type. The DSCP value is 34.

-

af42

AF42(36). Specifies a re-marked DSCP type. The DSCP value is 36.

-

af43

AF43(38). Specifies a re-marked DSCP type. The DSCP value is 38.

-

cs5

CS5(40). Specifies a re-marked DSCP type. The DSCP value is 40.

-

ef

EF(46). Specifies a re-marked DSCP type. The DSCP value is 46.

-

cs6

CS6(48). Specifies a re-marked DSCP type. The DSCP value is 48.

-

cs7

CS7(56). Specifies a re-marked DSCP type. The DSCP value is 56.

-

dscp-value

Specifies the DSCP value.

The value is an integer ranging from 0 to 63.

upper-dscp-value

Specifies the upper limit of a DSCP value.

The value is an integer ranging from 1 to 63.

Views

Flow-Route IPv6 VPN instance view, Flow-Route VPN instance view, Flow-Route-IPv6 view, Flow-Route view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
flow-route write

Usage Guidelines

Usage Scenario

The if-match dscp command is used to configure a filtering rule based on the DSCP value for a BGP (IPv6) Flow Specification route or BGP (IPv6) VPN Flow Specification route. Traffic matching the filtering rule will be controlled with the action specified by the apply clause.

Prerequisites

A static BGP (IPv6) Flow Specification route or BGP (IPv6) VPN Flow Specification route has been created using the flow-route command in the system view.

Precautions

A maximum of five filtering rules based on the DSCP value can be configured for a BGP Flow Specification route.

After you configure the flow-route ipv6 command, this command cannot be executed and a prompt message is displayed if being manually configured, and this command can be successfully executed if being dynamically delivered. However, this command does not take effect.

Example

# Configure a filtering rule that is based on a DSCP value range for the BGP VPN Flow Specification route Rule1.
<HUAWEI> system-view
[~HUAWEI] flow-route Rule1 vpn-instance va
[*HUAWEI-flow-route-va] if-match dscp greater-than 25 less-than 30
# Configure a filtering rule that is based on the DSCP value for the static BGP Flow Specification route Rule 1.
<HUAWEI> system-view
[~HUAWEI] flow-route Rule1
[*HUAWEI-flow-route] if-match dscp equal 25
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >