1-19
Configuration example
z Set the IP precedence of ICMP packets to 3.
z Display the configuration.
Configuration procedure:
<device> system-view
[device] protocol-priority protocol-type icmp ip-precedence 3
[device] display protocol-priority
Protocol: icmp
IP-Precedence: flash(3)
Marking Packet Priority
Refer to Priority Marking for information about marking packet priority.
Marking packet priority can be implemented in the following two ways:
z Through traffic policing
When configuring traffic policing, you can define the action of marking the 802.1p priority and DSCP
precedence for packets exceeding the traffic specification. Refer to Configuring Traffic Policing.
z Through the traffic-priority command
You can use the traffic priority command to mark the 802.1p priority and DSCP precedence of the
packets.
Configuration prerequisites
The following items are defined or determined before the configuration:
z The ACL rules used for traffic classification are specified. Refer to the ACL module of this manual
for related information.
z The type and value of the precedence to be marked for the packets matching the ACL rules are
determined.
Configuration procedure
You can mark priority for all the packets matching specific ACL rule s, or for packets that match specific
ACL rules and are of a VLAN, of a port group, or pass a port.
Follow these steps to mark the priority for the packets matching specific ACL rules:
To do… Use the command… Remarks
Enter system view system-view
Mark the priorities for packets
matching specific ACL rules traffic-priority inbound acl-rule { dscp
dscp-value | cos cos-value } Required
Follow these steps to mark the priority for packets that are of a VLAN and match specific ACL rules:
To do… Use the command… Remarks
Enter system view system-view
Mark the priorities for packets
matching specific ACL rules traffic-priority vlan vlan-id inbound acl-rule
{ dscp dscp-value | cos cos-value } Required