3.
(Optional) Run:
step
step-value
The step value between ACL rule IDs is set.
4.
Run the following command:
rule
[
rule-id
] {
deny
|
permit
} [ [
l2-head
|
ipv4-head
|
ipv6-head
|
l4-head
] {
rule-string rule-mask offset
} ] [
time-range
time-range-
name
]
The user-defined ACL is configured.
5.
Run:
quit
Return to the system view.
6.
Run:
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
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 AND.
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 OR 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
if-match vlan-id
or
if-match l2-protocol
command.
Otherwise, the traffic policy containing the traffic classifier fails to be applied.
----End
1.4.3 Configuring a Traffic Behavior
The S3700 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 S3700 rejects or permits packets matching traffic
classification rules to control the network traffic.
Procedure
Step 1
Run:
system-view
The system view is displayed.
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
18