27-37
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 27 Configuring QoS
Configuring QoS
After you create the policy map, attach it to an interface or an EFP. See the “Attaching a Service Policy
to an Interface or EFP” section on page 27-56.
This example shows how to create a traffic classification with a CoS value of 4, create a policy map, and
attach it to an ingress port. The average traffic rate is limited to 10000000 b/s with a burst size of
10000 bytes:
Switch(config)# class-map video-class
Switch(config-cmap)# match cos 4
Switch(config-cmap)# exit
Switch(config)# policy-map video-policy
Switch(config-pmap)# class video-class
Switch(config-pmap-c)# police 10000000 10000
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input video-policy
Switch(config-if)# exit
Step 6
exceed-action {drop |
set-cos-transmit cos_value |
set-discard-class
discard_value |
set-dscp-transmit dscp_value |
set-mpls-exp-imposition-tran
smit new-exp |
set-mpls-exp-topmost-transm
it new-exp | set-prec-transmit
value | set-qos-transmit value |
transmit}
(Optional) Enter the action to be taken on packets that exceed the CIR. The default
exceed action, if no action is configured, is drop.
• drop—drop the packet.
• set-cos-transmit cos_value—set the CoS value to a new value, and send the
packet. The range is 0 to 7.
• set-discard-class-transmit discard_value—set the discard value to a new
value, and send the packet. The range is 0 to 7.
• set-dscp-transmit dscp_value—set the IP DSCP value to a new value, and
send the packet. The range is 0 to 63. You also can enter a mnemonic name for
a commonly used value.
• set-mpls-exp-imposition-transmit new-exp—enter the new MPLS
experimental value to be set at tag imposition. The range is 0 to 7.
• set-mpls-exp-topmost-transmit new-exp—enter the new MPLS experimental
value for the outermost or topmost label, and send the packet. The range is 0
to 7.
• set-prec-transmit value—set the IP precedence value to a new value, and send
the packet. The range is 0 to 7.
• set-qos-transmit value—set the QoS group number to a new value, and send
the packet. The range is 0 to 99.
• transmit—send the packet without altering it.
Note If you explicitly configure exceed-action drop as keywords in the
command, you must enter policy-map class police configuration mode and
enter the no exceed-action drop command to remove the previously
configured exceed-action before you can enter the new exceed-action.
Step 7
end Return to privileged EXEC mode.
Step 8
show policy-map
[policy-map-name [class
class-map-name]]
Verify your entries.
Step 9
copy running-config
startup-config
(Optional) Save your entries in the configuration file.
Command Purpose