1-18 
 
Configuration examples 
# Set the IP precedence value of ICMP packets to 3.  
<Sysname> system-view 
[Sysname] protocol-priority protocol-type icmp ip-precedence 3 
# After completing the above configuration, display the list of protocol priorities manually specified.  
[Sysname] display protocol-priority 
Protocol: icmp 
  IP-Precedence: flash(3) 
Configuring Traffic Policing 
Refer to Traffic Policing and Traffic Shaping 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. 
Configuration procedures 
You can configure traffic policing for the incoming packets matching the specific ACL rules globally, in a 
VLAN, in a port group, or on a port.  
1)  Configuring traffic policing globally 
Follow these steps to configure traffic policing for the incoming packets matching the specific ACL rules 
globally: 
To do…  Use the command…  Remarks 
Enter system view
 
system-view
  — 
Configure traffic 
policing 
traffic-limit inbound acl-rule target-rate  
Required 
Disabled by default. 
 
2)  Configuring traffic policing for a VLAN 
Follow these steps to configure traffic policing for the incoming packets matching the specific ACL rules 
in a VLAN: 
To do…  Use the command…  Remarks 
Enter system view
 
system-view
  — 
Configure traffic 
policing 
traffic-limit vlan vlan-id inbound acl-rule 
target-rate  
Required 
Disabled by default. 
 
3)  Configuring traffic policing for a port group 
Follow these steps to configure traffic policing for the incoming packets matching the specific ACL rules 
in a port group: