Specifications
2-500
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
set cos
Note If you configure the set cos dscp command, on ly the first th ree bits (the class selector bits) of the DSCP
field are used.
Note If you configure the set cos qos group command, only the three least significant bits of the qos group
field are used.
Examples This exampl e shows how to configure a policy m ap called cos-set and assig n different CoS values for
different types of traffic. This example assumes that the cla ss maps called voice and vide o-data have
already been created.
Switch# configure terminal
Switch(config)# policy-map cos-set
Switch(config-pmap)# class voice
Switch(config-pmap-c)# set cos 1
Switch(config-pmap-c)# exit
Switch(config-pmap)# class video-data
Switch(config-pmap-c)# set cos 2
Switch(config-pmap-c)# end
Switch#
This example shows how to configure a policy map called policy-cos and to use the values defined in a
table map called table-map1. The table map called table-map1 was created earlier with the table-map
(value mapping) command. For more information about the tab le-m ap (value mapping) command, see
the table-map (value ma pping) command p age.
This example shows how the setting of the CoS value is based on the precedence value defined in
table-map1:
Switch# configure terminal
Switch(config)# policy-map policy-cos
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# set cos precedence table table-map1
Switch(config-pmap-c)# end
Switch#
Related Commands Command Description
match (class-map
configuration)
Defines the match criteria for a class map.
policy-map Creates or mod ifies a policy map that can be a ttached to multiple
ports to specify a service policy and to enter policy-map
configuration mod e.
service-policy (policy-map
class)
Creates a service policy that is a quality of service (QoS) policy
within a policy map.
set dscp Marks a packet by setting the differentiated services code
point (DSCP) value in the type of service (ToS) byte.
set pr eced en ce S ets the precedence value in the packet header.
show policy-map Displays information about the policy map.