Specifications

2-505
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 precedence
If you specify a “from-field” categor y but do not specify the table keyword and the applicable
table-map-name argume nt, the default action will be to copy the value associated with the “from-fi eld”
category as the precedence value. For instance, if you configure the set precedence cos command, the
CoS value will be copied and used as th e precedence value.
You can do the same for the QoS group-ma rking cate gory. That is, yo u can configure the set precedence
qos-group command, and the QoS group va lue will be copied and used as the precedence value.
The valid value range for the precedence value is a number from 0 to 7. The valid value range for the
QoS group is a number from 0 to 63. Therefore, when configuring the s et precedence qos-group
command the three least significant bits of qos-group are copied to precedence.
Precedence Values in IPv6 Environments
When this command is used in IPv6 environments it can set the value in both IPv4 and IPv6 packets.
However, the actual packets set by this function are only those that meet the match criteria of the
class-map containing this func tion.
Setting Precedence Values for IPv6 Packets Only
To set the precedence values for IPv6 packets only, the match protocol ipv6 command must also be used
in the class-map t hat cla ssified p ackets for this ac tion. Without the match pr otocol i pv6 command, the
class-map may classify both IPv6 and IPv4 packets, (depend ing on other match criteria ) and the set
precedence command will act upon both types of packets.
Setting Precedence Values for IPv4 Packets Only
To set the precedence values for IPv4 packets only, use a command involving the ip keyword like the
match ip precedence or match ip dscp command or include the match pro tocol ip command along
with the others in the class map. Without the additional ip keyword, the class-map may match both IPv6
and IPv4 packets ( depending on the other ma tch cr iteria) a nd the s et p rec ede nce or set dscp command
may act upon both types of packets.
Examples In the following example, the policy map named policy-cos is created to use the values defined in a table
map named table-map1. The table map named table-map1 was created earlier with the table-map (value
mapping) command. For more informa tion about the table-map (value mapping) command, see the
table-map (value mapping ) command page.
This example shows how the precedence value is set according to the CoS 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 precedence cos 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 modifies a policy map that can be attached to multiple
ports to specify a service policy and to e nter policy-map
configuration mode.