Cisco Catalyst 4500 Series Command Reference Manual page 681

Cisco ios command reference release ios xe 3.4.0sg and ios 15.1(2)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
If you specify a "from-field" category but do not specify the table keyword and the applicable
table-map-name argument, the default action will be to copy the value associated with the "from-field"
category as the CoS value. For instance, if you configure the set cos precedence command, the
precedence value will be copied and used as the CoS value.
You can do the same for the DSCP marking category. That is, you can configure the set cos dscp
command, and the DSCP value will be copied and used as the CoS value.
If you configure the set cos dscp command, only the first three bits (the class selector bits) of the DSCP
Note
field are used.
If you configure the set cos qos group command, only the three least significant bits of the qos group
Note
field are used.
Examples
This example shows how to configure a policy map called cos-set and assign different CoS values for
different types of traffic. This example assumes that the class maps called voice and video-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 table-map (value mapping) command, see
the table-map (value mapping) command page.
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
match (class-map
configuration)
policy-map
service-policy (policy-map
class)
OL-27596 -01
Description
Defines the match criteria for a class map.
Creates or modifies a policy map that can be attached to multiple
ports to specify a service policy and to enter policy-map
configuration mode.
Creates a service policy that is a quality of service (QoS) policy
within a policy map.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
set cos
2-623

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents