1-21
Configuration prerequisites
z
The ACL rules used for traffic classification are 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 are
determined.
Configuration procedure
You can configure traffic policing for all the packets matching specific ACL rules, or for the packets that
match specific ACL rules and are of a VLAN, of a port group, or pass a port.
Follow these steps to configure traffic policing for all the packets matching specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure traffic
policing
traffic-limit
inbound
acl-rule target-rate
[
conform con-action
] [
exceed
exceed-action
] [
meter-statistic
]
Required
By default, traffic policing is
disabled.
Clear the traffic
policing statistics
reset traffic-limit
inbound
acl-rule
Optional
Follow these steps to configure traffic policing for packets that are of a VLAN and match specific ACL
rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure traffic
policing
traffic-limit vlan vlan-id
inbound
acl-rule
target-rate
[
conform con-action
] [
exceed
exceed-action
] [
meter-statistic
]
Required
By default, traffic policing is
disabled.
Clear the traffic
policing statistics
reset traffic-limit
vlan
vlan-id
inbound
acl-rule
Optional
Follow these steps to configure traffic policing for packets that are of a port group and match specific
ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter port group view
port-group
group-id
—
Configure traffic
policing
traffic-limit
inbound
acl-rule target-rate
[
conform con-action
] [
exceed
exceed-action
] [
meter-statistic
]
Required
By default, traffic policing is
disabled.
Clear the traffic
policing statistics
reset traffic-limit
inbound
acl-rule
Optional
Follow these steps to configure traffic policing for packets passing a port and matching specific ACL
rules: