617
Configuring QoS
Configuring QoS
Switch(config-pmap-c)# police 230000 8000 conform-action set-dscp-transmit 33 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy input in-policy
Switch(config-if)# exit
This example shows how to use policy-map class police configuration mode to set multiple conform actions and an
exceed action. The policy map sets a committed information rate of 23000 bits per second (bps) and a conform burst
size of 10000 bytes. The policy map includes multiple conform actions (for DSCP and for Layer 2 CoS) and an exceed
action.
Switch(config)# class-map cos-set-1
Switch(config-cmap)# match cos 3
Switch(config-cmap)# exit
Switch(config)# policy-map map1
Switch(config-pmap)# class cos-set-1
Switch(config-pmap-c)# police cir 23000 bc 10000
Switch(config-pmap-c-police)# conform-action set-dscp-transmit 48
Switch(config-pmap-c-police)# conform-action set-cos-transmit 5
Switch(config-pmap-c-police)# exceed-action drop
Switch(config-pmap-c-police)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy input map1
Switch(config-if)# exit
This example shows how to use policy-map class police configuration mode to set exceed action mark-down using
table-maps. The policy map sets a committed information rate of 23000 bps and a conform burst-size of 10000 bytes.
The policy map includes the default conform action (transmit) and the exceed action to mark the Layer 2 CoS value
based on the table map and to mark IP DSCP to af41.
Switch(config)# policy-map in-policy
Switch(config-pmap)# class in-class-1
Switch(config-pmap-c)# police cir 23000 bc 10000
Switch(config-pmap-c-police)# exceed-action set-cos-transmit cos table police-cos-markdn-tablemap
Switch(config-pmap-c-police)# exceed-action set-dscp-transmit af41
Switch(config-pmap-c-police)# exit
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy input in-policy
Switch(config-if)# exit
Configuring Input Policy Maps with Aggregate Policing
You use the policer aggregate global configuration command to configure an aggregate policer. An aggregate policer
is shared by multiple traffic classes within the same policy map. You define the aggregate policer, create a policy map,
associate a class map with the policy map, associate the policy map with the aggregate policer, and apply the service
policy to a port.
Follow these guidelines when configuring aggregate policers:
Aggregate policing is supported only on input policy maps.
The switch supports a maximum of 229 policers associated with ports (228 user-configurable policers and 1 policer
reserved for internal use). You can configure up to 45 policers on a port.