Return to the system view.
6. Run:
traffic classifier classifier-name [ operator { and | or } ] [ precedence
precedence-value ]
A traffic classifier is created and the traffic classifier view is displayed.
and indicates the relationship between rules is AND. That is, packets must match all
the non-ACL rules and one of the ACL rules of the traffic classifier. or indicates the
relationship between rules is OR. That is, packets need to match only one rule of the
traffic classifier.
By default, the relationship between rules in a traffic classifier is OR.
7. Run:
if-match acl user-defined-acl-number
A traffic classifier based on a user-defined ACL is configured.
You can use only the if-match acl user-defined-acl-number command in a traffic
classifier where the relationship between rules is AND or configure other matching
rules. When the if-match acl user-defined-acl-number command is used and other
matching rules are configured, the if-match acl user-defined-acl-number command
can only be used with the commands of if-match vlan-id, if-match inbound-
interface, and if-match outbound-interface.
----End
1.4.3 Configuring a Traffic Behavior
The S7700 supports the actions of permit/deny, re-marking, redirection, traffic policing, flow
mirroring, and traffic statistics, which can be configured as required.
Configuring the Deny or Permit Action
By configuring the deny or permit action, the S7700 rejects or permits packets matching traffic
classification rules to control the network traffic.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
traffic behavior behavior-name
A traffic behavior is created and the traffic behavior view is displayed.
Step 3 Run the following commands as required.
l Run:
permit
The permit action is configured.
l Run:
deny
Quidway S7700 Smart Routing Switch
Configuration Guide - QoS 1 Class-based QoS Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
20