Specifications
2-497
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
set
set
To mark IP traffic by setting a class of service (CoS), a Differentiated Services Code Point (DSCP), or
IP-precedence in the packet, use the set policy-map class configurat ion command. To remove the traffic
classification, use the no form of this command.
set {cos new-cos | [ip] {dscp new-dscp | precedence new-precedence} | qos group value}
no set cos new-cos | ip {dscp new-dscp | precedence new-precedence} | qos group value}
Syntax Description
Defaults No marking is enabled o n packets.
Command Modes Policy-map class configuration mode
Usage Guidelines You can use the set command only in class-level classe s.
The set dscp new-dscp and the set precedence new-precedence commands are the same as the set ip
dscp new-dscp and the set ip precedence new-precedence commands.
For the set ds cp new-d scp or the set precedence new-precedence command, you can enter a mnemonic
name for a commonly used value. For example, you can enter the set dscp af11 command, which is the
as same ente ring the set dscp 10 command. You can enter the set precedence critical command, which
is the same as entering the set precedence 5 command. For a list of supported mnemonics, enter the set
dscp ? or the set precedence ? command to see the command-line help strings.
You can configure the set cos new-cos, set dscp new-dscp, or set precedence new-precedence command
in an ingress and an egress policy map attached to an interface or VLAN.
To return to policy-map configur ation mode , use the exit command. To return to privileged EXEC mode,
use the end command.
Examples This example shows how to create a policy map called p1 with CoS values assigned to different traffic
types. Class maps for voice and video- data have already been cre ated.
Switch# configure terminal
cos new-cos New CoS value assigned to the classified traffic. The range is 0 to 7.
ip dscp new-dscp New DSCP value assigned to the classified traffic. The range is
0 to 63. You also can enter a mnemonic name for a commonly used
value. The specified value sets the type of service (ToS) traffic class
byte in the IPv4/IPv6 packet head er.
ip precedence new-precedence New IP-precedence value assigned to the classified traffic. The
range is 0 to 7. You also can enter a mnemonic name for a
commonly used value. The specified value sets the precedence bit
in the IP header.
qos group value I nternal Q oS group assigned to a c lassified packet o n ingre ss to a n
interface.