26-84
Catalyst 3750 Metro Switch Software Configuration Guide
78-15870-01
Chapter 26 Configuring QoS
Configuring Hierarchical QoS
Configuring Class-Based Packet Marking in an Egress Traffic Policy
You can perform class-based packet marking in an traffic policy by configuring the set {cos new-cos | ip
{dscp new-dscp | precedence new-precedence} | mpls experimental exp-number} policy-map class
configuration command in an egress policy-map attached to an ES port.
Before beginning this procedure, make sure that you have created the class map to isolate traffic. For
more information, see the “Classifying Egress Traffic by Using Class Maps” section on page 26-78.
Beginning in privileged EXEC mode, follow these steps to configure class-level, class-based packet
marking in a service policy for outbound traffic. This procedure is optional. The examples that follow
the procedure show how to configure class-level and VLAN-level class-based packet marking.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
policy-map policy-map-name Create a policy map by entering the policy-map name, and enter
policy-map configuration mode.
By default, no policy maps are defined.
Step 3
class class-name Specify the name of the class whose traffic policy you want to create
or change, and enter policy-map class configuration mode.
By default, no traffic classes are defined.
Step 4
set {cos new-cos | ip {dscp new-dscp |
precedence new-precedence} | mpls
experimental exp-number}
Designate the value to set in the traffic class if the packets match the
criteria.
• For cos new-cos, enter the new CoS value assigned to the
classified traffic. The range is 0 to 7.
• For ip dscp new-dscp, enter the new DSCP value assigned to the
classified traffic. The range is 0 to 63. The specified value sets the
ToS byte in the packet header.
• For ip precedence new-precedence, enter the new IP-precedence
value assigned to the classified traffic. The range is 0 to 7. The
specified value sets the precedence bit in the IP header.
• For mpls experimental exp-number, enter the new MPLS EXP
value assigned to the classified traffic. The range is 0 to 7. The
specified value sets the MPLS EXP 3-bit field in the packet header.
Step 5
exit Return to policy-map configuration mode.
Step 6
exit Return to global configuration mode.
Step 7
interface interface-id Specify an ES port to attach to the policy map, and enter interface
configuration mode.
Step 8
service-policy output policy-map-name Specify the egress policy-map name, and apply it to the ES port.
Only one policy map per port is supported.
Step 9
end Return to privileged EXEC mode.