33-45
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-06
Chapter 33 Configuring QoS Configuring QoS
After you have created an aggregate policer, you attach it to an ingress port. See the “Attaching a T raf f ic
Policy to an Interface” section on page 33-37.
To remove the specified aggregate policer from a policy map, use the no police aggregate
aggregate-policer-name policy map configuration mode. To delete an aggregate policer and its
parameters, use the no policer aggregate aggregate-policer-name global configuration command.
This example shows how to create an aggregate policer and attach it to multiple classes within a policy
map. The policy map is attached to an ingress port.
Switch(config)# policer aggregate example 10900000 80000 conform-action transmit
exceed-action drop
Switch(config)# class-map testclass1
Switch(config-cmap)# match access-group 1
Switch(config-cmap)# exit
Switch(config)# class-map testclass2
Switch(config-cmap)# match access-group 2
Switch(config-cmap)# exit
Switch(config)# policy-map testexample
Switch(config-pmap)# class testclass
Switch(config-pmap-c)# police aggregate example
Switch(config-pmap-c)# exit
Switch(config-pmap)# class testclass2
Switch(config-pmap-c)# police aggregate example
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy input testexample
Switch(config-if)# exit
Configuring Input Policy Maps with Marking
You use the set policy-map class configuration command to set or modify the attributes for traffic
belonging to a specific class. Follow these guidelines when configuring marking in policy maps:
You can configure a maximum of 100 QoS groups on the switch.
When you use a table map for marking in an input policy map, the protocol type of the map from
type of action must be the same as the protocol type of the associated classification. For example, if
the associated class map represents an IP classification, the map from type of action that references
the table map must be either dscp or precedence. If the associated class map represents a non-IP
classification, the map from type of action that references the table map must be cos.
Beginning in privileged EXEC mode, follow these steps to create an input policy map that marks traffic:
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 policy-map policy-map-name Create a policy map by entering the policy map name, and enter
policy-map configuration mode.
Step 3 class {class-map-name | class-default}Enter a class-map name, or class-default to match all unclassified
packets, and enter policy-map class configuration mode.
If you enter a class-map name, you must have already created the class
map by using the class-map global configuration command.