1-16
Configuration example
z Set the IP precedence of ICMP packets to 3.
z Display the configuration.
Configuration procedure:
<Sysname> system-view
[Sysname] protocol-priority protocol-type icmp ip-precedence 3
[Sysname] display protocol-priority
Protocol: icmp
IP-Precedence: flash(3)
Marking Packet Priority Refer to section 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 DSCP precedence for
packets exceeding the traffic specification. Refer to section Configuring Traffic Policing.
z Through the traffic-priority command
You can use the traffic priority command to mark the IP precedence, 802.1p priority, DSCP
precedence, and local precedence of the packets.
Configuration prerequisites
The following items are defined or determined before the configuration:
z The ACL rules used for traffic classification have been 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 have
been determined.
z The port or VLAN on which the configuration is to be performed has been determined.
Configuration procedure
Follow these steps to configure priority marking on a port:
To do… Use the command… Remarks
Enter system view system-view —
Enter Ethernet port view interface interface-type
interface-number —
Mark the priorities for packets
matching specific ACL rules
traffic-priority { 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.
Follow these steps to configure priority marking on a VLAN: