Cisco Systems 4500 Switch User Manual


  Open as PDF
of 1504
 
37-74
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 37 Configuring Quality of Service
Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E
Configuring Table Map-Based Unconditional Marking
To configure table map-based unconditional marking, perform this task:
The following example shows how to enable marking action using table map:
Switch(config)# table-map dscp2Cos
Switch(config-tablemap)# map from 8 to 1
Switch(config-tablemap)# exit
Switch(config)# policy-map p1
Switch(config-pmap)# class ipp5
Switch(config-pmap-c)# set cos dscp table dscp2Cos
Switch(config-pmap-c)# end
Switch# show policy-map p1
Policy Map p1
Class ipp5
set cos dscp table dscp2Qos
Switch# show table-map dscp2Cos
Table Map dscp2Cos
from 8 to 1
default copy
Configuring Policer Result-Based Conditional Marking
To configure policer result-based conditional marking, set up a single-rate or dual-rate policer. Refer to
the “Implementing Policing” section on page 37-68.
This example shows how to configure a two-rate three-color policer with explicit actions for each policer
region:
Switch# configure terminal
Switch(config-pmap-c)# policer cir percent 20 pir percent 30
Switch(config-pmap-c-policer)# conform-action set-cos-transmit 3 set-dscp-transmit 10
Switch(config-pmap-c-policer)# exceed-action set-cos-transmit 4 set-dscp-transmit 20
Switch(config-pmap-c-policer)# violate action drop
Switch# show policy-map p1
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# table-map name
Configures a table map.
Step 3
Switch(config-tablemap)# map from
from_value to to_value
Creates a map from a from_value to a to_value
Step 4
Switch(config-tablemap)# exit
Exits table-map configuration mode.
Step 5
Switch(config)# policy-map name
Enters policy-map configuration mode.
Step 6
Switch(config-p)# class name
Selects the class for QoS actions.
Step 7
Switch(config-p-c)# set cos | dscp |
prec cos | dscp | prec | qos-group
[table name]
Selects the marking action based on an implicit or explicit table map.
Step 8
Switch(config-p-c)# end
Exits configuration mode.
Step 9
Switch# show policy-map name
Verifies the configuration of the policy map.
Step 10
Switch# show table-map name
Verifies the configuration of the table map.