Configuring Class-Based Packet Marking In An Egress Traffic Policy - Cisco Catalyst 3750 Software Configuration Manual

Metro switch
Hide thumbs Also See for Catalyst 3750:
Table of Contents

Advertisement

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
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
Step 1
configure terminal
Step 2
policy-map policy-map-name
Step 3
class class-name
Step 4
set {cos new-cos | ip {dscp new-dscp |
precedence new-precedence} | mpls
experimental exp-number}
Step 5
exit
Step 6
exit
Step 7
interface interface-id
Step 8
service-policy output policy-map-name
Step 9
end
Catalyst 3750 Metro Switch Software Configuration Guide
26-84
"Classifying Egress Traffic by Using Class Maps" section on page
Purpose
Enter global configuration mode.
Create a policy map by entering the policy-map name, and enter
policy-map configuration mode.
By default, no policy maps are defined.
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.
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.
Return to policy-map configuration mode.
Return to global configuration mode.
Specify an ES port to attach to the policy map, and enter interface
configuration mode.
Specify the egress policy-map name, and apply it to the ES port.
Only one policy map per port is supported.
Return to privileged EXEC mode.
Chapter 26
Configuring QoS
26-78.
78-15870-01

Advertisement

Table of Contents
loading

Table of Contents