168 Chapter 6: QoS Features Available on the Catalyst 2950 and 3550 Family of Switches
Example 6-18 illustrates the use of the show mls qos aggregate-policer command.
Port-Based, VLAN-Based, and Per-Port Per-VLAN-Based Policing
Port-based policing entails binding policy maps to individual ports. VLAN-based policing
involves attaching a policy map to a VLAN interface. The Catalyst 2950 Family of switches
supports only port-based policing. The Catalyst 3550 Family of switches supports port-
based policing and a variant of VLAN-based policing referred to as per-port per-VLAN
policing. The Catalyst 3550 Family of switches does not support applying policers to
VLAN interfaces. Per-port per-VLAN policing consists of the typical class map clauses
nested in a second-class map with a VLAN-class match clause. The switch is only able to
bind per-port per-VLAN to trunk ports and VLAN access ports. Example 6-19 illustrates a
sample configuration of per-port per-VLAN-based policing.
Example 6-18 Displaying Policy Map–to–Aggregate Policers Mapping
Switch#show mls qos aggregate-policer
aggregate-policer RATE_500MBPS 500000000 64000 exceed-action drop
Used by policy map AGGR_TRAFFIC_LIMITING
Example 6-19 Sample Configuration of Per-Port Per-VLAN Policing
Switch#show running-config
Building configuration. . .
(text deleted)
!
mls qos
!
class-map match-any MATCH_LIST
match access-group 100
match ip precedence 5
match ip dscp 35
class-map match-all MATCH_VLAN_LIST
match vlan 2 100-105
match class-map MATCH_LIST
!
!
policy-map RATE_LIMIT_VLAN_2_100-105
class MATCH_VLAN_LIST
set ip dscp 22
!
(text deleted)
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
service-policy input RATE_MARK
!
(text deleted)
!