1-17
To do…
Use the command…
Remarks
Enter system view
system-view
—
Mark the priorities for the
packets belonging to a VLAN
and matching specific ACL
rules
traffic-priority vlan
vlan-id
{
inbound
|
outbound
}
acl-rule
{ {
dscp
dscp-value
|
ip-precedence
{
pre-value
|
from-cos
} } |
cos
{
pre-value
|
from-ipprec
} |
local-precedence
pre-value
}*
Required
Refer to the command
manual for information
about the
acl-rule
argument.
Configuration example
z
Ethernet 1/0/1 belongs to VLAN 2 and is connected to the 10.1.1.1/24 network segment.
z
Mark the DSCP precedence as 56 for the packets from the 10.1.1.1/24 network segment.
1) Method
I
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] traffic-priority inbound ip-group 2000 dscp 56
2) Method
II
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] traffic-priority vlan 2 inbound ip-group 2000 dscp 56
Configuring Traffic Policing
Refer to section
Traffic Policing
for information about traffic policing.
Configuration prerequisites
z
The ACL rules used for traffic classification have been defined. Refer to the ACL
module of this
manual for information about defining ACL rules.
z
The rate limit for traffic policing, and the actions for the packets exceeding the rate limit have been
determined.
z
The ports that need this configuration have been determined.
Configuration procedure
Follow these steps to configure traffic policing:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port
view
interface
interface-type
interface-number
—