R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
176
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match acl name flow
# Change the match criterion of class class1 from ACL 2008 to ACL 2009.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] undo if-match acl 2008 update acl 2009
# Define a match criterion for class class1 to match packets with protocol group ID 2.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match protocol-group 2
traffic classifier
Syntax
traffic classifier tcl-name [ operator { and | or } ]
undo traffic classifier tcl-name
View
System view
Default level
2: System level
Parameters
tcl-name: Specifies a class name, a string of 1 to 31 characters.
operator: Sets the operator to logic AND or OR for the class.
and: Specifies the logic AND operator. The class matches the packets that match all its criteria.
or: Specifies the logic OR operator. The class matches the packets that match any of its criteria.
Description
Use the traffic classifier command to create a class and enter class view.
Use the undo traffic classifier command to delete a class.
If no match operator is specified, the default AND operator applies.
The tcl-name argument cannot take the name of system-defined class:default-class.
Related commands: qos policy, qos apply policy, and classifier behavior.
Examples
# Create a class class1.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1]