Cisco Catalyst 2960 Command Reference Manual page 57

Hide thumbs Also See for Catalyst 2960:
Table of Contents

Advertisement

Chapter 2
Catalyst 2960 Switch Cisco IOS Commands
The class command performs the same function as the class-map global configuration command. Use
the class command when a new classification, which is not shared with any other ports, is needed. Use
the class-map command when the map is shared among many ports.
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 Differentiated Services Code Point
(DSCP) to 10, and polices the traffic at an average rate of 1 Mb/s and bursts at 20 KB. Traffic exceeding
the profile is marked down to a DSCP value gotten from the policed-DSCP map and then sent.
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# set dscp 10
Switch(config-pmap-c)# police 1000000 20000 exceed-action policed-dscp-transmit
Switch(config-pmap-c)# exit
You can verify your settings by entering the show policy-map privileged EXEC command.
Related Commands
Command
class-map
police
policy-map
set
show policy-map
trust
OL-8604-04
Description
Creates a class map to be used for matching packets to the class whose name
you specify.
Defines a policer for classified traffic.
Creates or modifies a policy map that can be attached to multiple ports to
specify a service policy.
Classifies IP traffic by setting a DSCP or IP-precedence value in the packet.
Displays quality of service (QoS) policy maps.
Defines a trust state for the traffic classified through the class policy-map
configuration command or the class-map global configuration command.
Catalyst 2960 Switch Command Reference
class
2-31

Advertisement

Table of Contents
loading

Table of Contents