Cisco Catalyst 2960 Software Configuration Manual page 800

Hide thumbs Also See for Catalyst 2960:
Table of Contents

Advertisement

Configuring Standard QoS
This example shows that when a child-level policy map is attached below a class, an action must be
specified for the class:
Switch(config)# policy-map vlan-plcmap
Switch(config-pmap)# class cm-5
Switch(config-pmap-c)# set dscp 7
Switch(config-pmap-c)# service-policy port-plcmap-1
This example shows how to configure default traffic class to a policy map:
Switch# configure terminal
Switch(config)# class-map cm-3
Switch(config-cmap)# match ip dscp 30
Switch(config-cmap)# match protocol ipv6
Switch(config-cmap)# exit
Switch(config)# class-map cm-4
Switch(config-cmap)# match ip dscp 40
Switch(config-cmap)# match protocol ip
Switch(config-cmap)# exit
Switch(config)# policy-map pm3
Switch(config-pmap)# class class-default
Switch(config-pmap)# set dscp 10
Switch(config-pmap-c)# exit
Switch(config-pmap)# class cm-3
Switch(config-pmap-c) set dscp 4
Switch(config-pmap-c)# exit
Switch(config-pmap)# class cm-4
Switch(config-pmap-c)# trust cos
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
This example shows how the default traffic class is automatically placed at the end of policy-map pm3
even though class-default was configured first:
Switch# show policy-map pm3
Policy Map pm3
Switch#
Classifying, Policing, and Marking Traffic by Using Aggregate Policers
To use policing and marking, the switch must be running the LAN Base image.
Note
By using an aggregate policer, you can create a policer that is shared by multiple traffic classes within
the same policy map. However, you cannot use the aggregate policer across different policy maps or
ports.
Catalyst 2960 and 2960-S Switches Software Configuration Guide, Release 15.0(1)SE
33-62
Class cm-3
set dscp 4
Class cm-4
trust cos
Class class-default
police 8000 80000 exceed-action drop
Chapter 33
Configuring QoS
OL-26520-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2960-s

Table of Contents