Chapter 2
Cisco IOS Commands
Only one policy map per interface per direction is supported. You can apply the same policy map to
multiple interfaces and directions.
Per-port per-VLAN policing is not supported on routed ports or on virtual (logical) interfaces. It is
supported only on an ingress port configured as a trunk or as a static-access port.
You cannot use the service-policy interface configuration command to attach policy maps that contain
these elements to an egress interface:
•
•
•
The only match criterion in a policy map that can be attached to an egress interface is the match ip dscp
dscp-list class-map configuration command.
Examples
This example shows how to create a policy map called policy1. When attached to the ingress direction,
it matches all the incoming traffic defined in class1, sets the IP DSCP to 10, and polices the traffic at an
average rate of 1 Mbps and 20-KB bursts. Traffic exceeding the profile is marked down to a DSCP value
obtained from the policed-DSCP map and then sent.
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# set ip dscp 10
Switch(config-pmap-c)# police 1000000 20000 exceed-action policed-dscp-transmit
Switch(config-pmap-c)# exit
This example shows how to configure multiple classes in a policy map called policymap2:
Switch(config)# policy-map policymap2
Switch(config-pmap)# class class1
Switch(config-pmap-c)# set ip dscp 10
Switch(config-pmap-c)# police 100000 20000 exceed-action policed-dscp-transmit
Switch(config-pmap-c)# exit
Switch(config-pmap)# class class2
Switch(config-pmap-c)# trust dscp
Switch(config-pmap-c)# police 100000 20000 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# class class3
Switch(config-pmap-c)# set dscp 0 (no policer)
Switch(config-pmap-c)# exit
78-11195-09
set or trust policy-map class configuration commands. Instead, you can use the police policy-map
class configuration command to mark down (reduce) the DSCP value at the egress interface.
Access control list (ACL) classification.
Per-port per-VLAN classification.
Catalyst 3550 Multilayer Switch Command Reference
policy-map
2-201