Configuring Traffic Classifiers

You need to define traffic classifiers when configuring traffic classification. Traffic classifiers can be defined on the basis of the ACL, IP precedence, protocol type, MAC address, and protocol address.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run traffic classifier classifier-name [ operator { and | or } ]

    The traffic classifier is defined and the traffic classifier view is displayed.

    classifier-name defined by users cannot be the one pre-defined by the system. The system-defined classifier, however, can be used when users define traffic policies. For details on traffic classification, see the HUAWEI NetEngine 8000 F Series Router Configuration Guide - QoS.

  3. Configure the traffic classifier as required.

    • Run the if-match 8021p 8021p-value command to define a matching rule to classify traffic based on the 802.1p priority in a VLAN packet.
    • Run the if-match [ ipv6 ] acl { acl-number | name acl-name } command to define matching ACL rules.
    • Run the if-match [ ipv6 ] any command to define rules that match all packets.
    • Run the if-match destination-mac mac-address command to define a matching rule to classify traffic based on the destination MAC address.
    • Run the if-match ipv6 destination-address ipv6-address prefix-length command to define a matching rule to classify traffic based on the IPv6 destination address.
    • Run the if-match [ ipv6 ] dscp dscp-value command to define a matching rule to classify traffic based on the DSCP value.
    • Run the if-match mpls-exp exp-value command to define a matching rule to classify traffic based on the value of the MPLS EXP field.
    • Run the if-match ip-precedence ip-precedence command to define a matching rule to classify traffic based on IP precedence.
    • Run the if-match source-mac mac-address command to define a matching rule to classify traffic based on the source address.
    • Run the if-match tcp syn-flag { tcpflag-value [ mask tcpflag-mask ] | bit-match { established | fin | syn | rst |psh | ack | urg | ece | cwr | ns } } command to define a matching rule to classify traffic based on the IPv4 TCP flag value.
    • To define a rule to match traffic based on the IPv6 TCP flag, run the if-match ipv6 tcp syn-flag { tcpflag-value [ mask tcpflag-mask ] | bit-match { established | fin | syn | rst | psh | ack | urg } } command.

    You can select one or several matching rules in step 3 as required.

  4. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >