44-12
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 44 Configuring Control Plane Policing and Layer 2 Control Packet QoS
Configuring Layer 2 Control Packet QoS
Enabling Layer 2 Control Packet QoS
To enable Layer 2 control packet QoS, perform this task:
Table 44-1 lists the types of packets impacted by this feature.
The following example shows how to enable QoS for CDP packets and to apply a policer to CDP packets
arriving on interface gi3/1 and VLAN 1:
Switch# config terminal
Switch(config)# qos control-packets cdp-vtp
Switch(config)# end
Switch# show run | inc qos control-packets
qos control-packets cdp-vtp
Switch# show class-map
Class Map match-any system-control-packet-cdp-vtp (id 1)
Match access-group name system-control-packet-cdp-vtp
Create a policy map and attach it to interface gi3/1 , vlan 1
Switch# config terminal
Switch(config)# policy-map police_cdp
Switch(config-pmap)# class system-control-packet-cdp-vtp
Switch(config-pmap-c)# police 32k
Switch(config-pmap-c)# end
Switch(config)# interface gi3/1
Switch(config-if)# vlan 1
Switch(config-if-vlan-range)# service-policy in police_cdp
Command Purpose
Step 1 Switch# config terminal Enters configuration mode.
Step 2 Switch(config)# [no] qos control-packets
[bpdu-range | cdp-vtp | eapol | sstp |
protocol-tunnel | lldp]
Enables QoS on all or a specific packet type.
Use the no keyword to disable QoS on all or a specific
packet type.
Step 3 Switch(config)# end Exits configuration mode.
Step 4 Switch# show run | inc qos control-packets Verifies the configuration.
Table 44-1 Packet Type and Actionable Address Range
Type of Packet that the Feature is Enabled On Range of Address the Feature Acts On
BPDU-range 0180.C200.0000 BPDU
0180.C200.0002 OAM, LACP
0180.C200.0003 EAPOL
CDP-VTP 0100.0CCC.CCCC
SSTP 0100.0CCC.CCCD
LLDP 0180.C200.000E