NOTE
A Layer 2 ACL and a Layer 3 ACL can be set in the
traffic-filter
command simultaneously.
The Layer 3 ACL and its rules can be configured only after the Layer 2 ACL and its rules are
configured. The Layer 2 ACL number ranges from 4000 to 4999 and the Layer 3 ACL number
ranges from 2000 to 2999 or 3000 to 3999.
To configure both Layer 2 ACLs and Layer 3 ACLs on an interface of a switch, use the
following command:
traffic-filter
inbound
acl
{
l2-acl
|
name
acl-name
} [
rule
rule-id
]
acl
{
bas-acl
|
adv-acl
|
name
acl-name
} [
rule
rule-id
]
----End
1.5.4 Re-marking the Traffic That Matches an ACL Rule
Context
By configuring the re-marking action, the S3700 re-marks priorities of packets matching traffic
classification rules, such as 802.1p priorities of VLAN packets, DSCP priorities of IP packets,
and EXP priorities of MPLS packets.
Procedure
l
Configuring re-marking globally
1.
Run:
system-view
The system view is displayed.
2.
Run:
traffic-remark
[
vlan
vlan-id
]
inbound
acl
{ [
ipv6
] {
bas-acl
|
adv-
acl
|
name
acl-name
} |
l2-acl
|
user-acl
} [
rule
rule-id
] {
8021p
8021p-
value
|
destination-mac
mac-address
|
dscp
{
dscp-name
|
dscp-value
} |
local-precedence
local-precedence-value
|
ip-precedence
ip-precedence-
value
|
vlan-id
vlan-id
}
The priorities of incoming packets matching an ACL rule are re-marked.
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.
32