2-420
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
set
You can configure the set cos new-cos, set dscp new-dscp, set precedence new-precedence, or the set
mpls experimental exp-number command in an ingress and an egress policy map attached to an
enhanced-services (ES) port. You can configure only the set dscp new-dscp or the set precedence
new-precedence command in an ingress nonhierarchical policy map attached to an standard SVI or an
ES port.
If an ingress hierarchical policy map includes set cos new-cos, the set dscp new-dscp, or the set
precedence new-precedence command, the switch automatically applies the port trust state to the ES
port. The switch applies the port trust state to all inbound traffic on the ES port, including traffic that
does not match the traffic class. For example, if you enter the set cos new-cos command, the switch
automatically configures the interface to trust CoS.
In an ingress policy map, you cannot combine Layer 2 and Layer 3 set actions because the port can trust
only one value in the inbound packet. For example, the switch does not support this policy map:
policy-map p1
class cos1
police cir per 10 conform-action set-cos-transmit 3
set dscp af22
To return to policy-map configuration 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 created.
Switch(config)# policy-map p1
Switch(config-pmap)# class voice
Switch(config-pmap-c)# set cos 1
Switch(config-pmap)# exit
Switch(config-pmap)# class video-data
Switch(config-pmap-c)# set cos 2
Switch(config-pmap)# exit
You can verify your settings by entering the show policy-map privileged EXEC command.
Related Commands Command Description
class Specifies the name of the class whose traffic policy you want to create or
change.
policy-map Creates or modifies a policy map that can be attached to multiple ports to
specify a service policy.
show policy-map Displays quality of service (QoS) policy maps.
trust Defines a trust state for traffic class.