Defining a class
The system predefines some classes and defines general match criteria for them. A user-defined class cannot be named the same as a system-defined class. You can use these predefined classes when defining a policy. The system-defined classes include:
The default class
default-class: Matches the default traffic.
DSCP-based predefined classes
ef, af1, af2, af3, af4: Matches IP DSCP value ef, af1, af2, af3, af4, respectively.
IP precedence-based predefined classes
ip-prec0, ip-prec1, …ip-prec7: Matches IP precedence value 0, 1, …7, respectively.
MPLS EXP-based predefined classes
mpls-exp0, mpls-exp1, …mpls-exp7: Matches MPLS EXP value 0, 1, …7, respectively.
To define a class:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a class and enter class view. | traffic classifier classifier-name [ operator { and | or } ] | By default, the operator of a class is AND. The operator of a class can be AND or OR.
|
3. Configure match criteria. | if-match [ not ] match-criteria | For more information, see the if-match command in ACL and QoS Command Reference. |