2-360
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
policy-map
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 ip dscp 0
Switch(config-pmap-c)#
exit
This example shows how to create a dual-level 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 gigabitethernet1/0/1 - gigabitethernet1/0/2
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
Specifies the name of the class whose traffic policy you want to create or
change.
Creates a class map to be used for matching packets to the class whose name
you specify.
Creates or modifies a policy map that can be attached to multiple ports to
specify a service policy.
service-policy
Applies a policy map to a port.
Displays quality of service (QoS) policy maps.