20-38
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Co nf iguring QoS
Configuring QoS
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 a nd its
parameters, use the no mls qos aggregate-policer 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. In the configuration, the IP ACLs permit traffic from network 10.1.0.0 and from host 11.3.1.1. For
traffic coming from network 10.1.0.0, the DSCP in the incoming packets is trusted. For traffic coming
from host 11.3.1.1, the DSCP in the packet is changed to 56. The traffic rate from the 10.1.0.0 net work
and from host 11.3.1.1 is policed. If the traffic exceeds an av er ag e r ate o f 480 0 0bps and a normal burst
size of 8000 bytes, its DSCP is marked down (based on the poli ced- DSCP m ap) a nd sent . Th e polic y
map is attached to an ingress interface.
Switch(config)# access-list 1 permit 10.1.0.0 0.0.255.255
Switch(config)# access-list 2 permit 11.3.1.1
Switch(config)# mls qos aggregate-police transmit1 48000 8000 exceed-action
policed-dscp-transmit
Switch(config)# policy-map aggflow1
Switch(config-pmap)# class ipclass1 access-group 1
Switch(config-pmap-c)# trust dscp
Switch(config-pmap-c)# police aggregate transmit1
Switch(config-pmap-c)# exit
Switch(config-pmap)# class ipclass2 access-group 2
Switch(config-pmap-c)# set ip dscp 56
Switch(config-pmap-c)# police aggregate transmit1
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input aggflow1
Switch(config-if)# exit
Step9 interface interface-id Enter interface configuration mode, and specify the interface to attach
to the policy map.
Valid interfaces include physical interfaces.
Step10 service-policy {input policy-map-name |
output policy-map-name}Apply a policy map to the input or output of a particular interface.
Only one policy map per interface per direction is supported.
Use input policy-map-name to apply the specified policy-map to
the input of an interface.
Use output policy-map-name to apply the specified policy-m ap to
the output of an interface. Policy maps that contain set or trust
policy-map class configuration commands or that have ACL
classification cannot be attached to an egress interface.
Step11 end Return to privileged EXEC mode.
Step12 show mls qos aggregate-policer
[aggregate-policer-name]Verify your entries.
Step13 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose