2-241
Cisco Catalyst Blade Switch 3030 Command Reference
78-17262-01
Chapter 2 Cisco Catalyst Blade Switch 3030 Cisco IOS Commands
policy-map
This example shows how to create a hierarchical policy map and attach it to an SVI:
Switch(config)#
class-map cm-non-int
Switch(config-cmap)#
match access-group 101
Switch(config-cmap)#
exit
Switch(config)#
class-map cm-non-int-2
Switch(config-cmap)#
match access-group 102
Switch(config-cmap)#
exit
Switch(config)#
class-map cm-test-int
Switch(config-cmap)#
match input-interface gigabitethernet0/2 - gigabitethernet0/3
Switch(config-cmap)#
exit
Switch(config)#
policy-map pm-test-int
Switch(config-pmap)#
class cm-test-int
Switch(config-pmap-c)#
police 18000000 8000 exceed-action drop
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
policy-map pm-test-pm-2
Switch(config-pmap)#
class cm-non-int
Switch(config-pmap-c)#
set dscp 7
Switch(config-pmap-c)#
service-policy pm-test-int
Switch(config-pmap)#
class cm-non-int-2
Switch(config-pmap-c)#
set dscp 15
Switch(config-pmap-c)#
service-policy pm-test-int
Switch(config-pmap-c)#
end
Switch(config-cmap)#
exit
Switch(config)#
interface vlan 10
Switch(config-if)#
service-policy input pm-test-pm-2
This example shows how to delete
policymap2
:
Switch(config)#
no policy-map policymap2
You can verify your settings by entering the
show policy-map
privileged EXEC command.
Related Commands
Command
Description
class
Defines a traffic classification match criteria (through the
police
,
set
, and
trust
policy-map class configuration command) for the specified class-map
name.
class-map
Creates a class map to be used for matching packets to the class whose name
you specify.
service-policy
Applies a policy map to a port.
show mls qos vlan
Displays the quality of service (QoS) policy maps attached to an SVI.
show policy-map
Displays QoS policy maps.