user manual

39-67
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 39 Configuring QoS
Configuring Standard QoS
Switch(config-pmap-c)# exit
Switch(config-pmap)# class-map cm-
2
Switch(config-pmap-c)# match ip ds
cp 2
Switch(config-pmap-c)# service-pol
icy port-plcmap-1
Switch(config-pmap)# exit
Switch(config-pmap)# class-map cm-
3
Switch(config-pmap-c)# match ip ds
cp 3
Switch(config-pmap-c)# service-pol
icy port-plcmap-2
Switch(config-pmap)# exit
Switch(config-pmap)# class-map cm-
4
Switch(config-pmap-c)# trust dscp
Switch(config-pmap)# exit
Switch(config)# interface vlan 10
Switch(config-if)#
Switch(config-if)# service input v
lan-plcmap
Switch(config-if)# exit
Switch(config)# exit
Switch#
This example shows how to configure a class map to match IP DSCP and IPv6:
Switch(config)# Class-map cm-1
Switch(config-cmap)# match ip dscp
10
Switch(config-cmap)# match protoco
l ipv6
Switch(config-cmap)# exit
Switch(config)# Class-map cm-2
Switch(config-cmap)# match ip dscp
20
Switch(config-cmap)# match protoco
l ip
Switch(config-cmap)# exit
Switch(config)# Policy-map pm1
Switch(config-pmap)# class cm-1
Switch(config-pmap-c)# set dscp 4
Switch(config-pmap-c)# exit
Switch(config-pmap)# class cm-2
Switch(config-pmap-c)# set dscp 6
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface G1/0/1
Switch(config-if)# service-policy input
pm1
Classifying, Policing, and Marking Traffic by Using Aggregate Policers
By using an aggregate policer, you can create a policer that is shared by multiple traffic classes within
the same policy map. However, you cannot use the aggregate policer across different policy maps or
ports.
You can configure aggregate policers only in nonhierarchical policy maps on physical ports.