Cisco Nexus 9000 Series Configuration Manual page 108

Nx-os quality of service configuration, release 7.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Configuring 1-Rate and 2-Rate, 2-Color and 3-Color Policing
8. show policy-map [type qos] [policy-map-name | qos-dynamic]
9. copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
policy-map [type qos] [match-first] [policy-map-name]
Example:
switch(config)# policy-map policy1
switch(config-pmap-qos)#
Step 3
class [type qos] {class-map-name | class-default}
[insert-before before-class-name]
Example:
switch(config-pmap-qos)# class class-default
switch(config-pmap-c-qos)#
Step 4
police [cir] {committed-rate [data-rate] | percent
cir-link-percent} [bc committed-burst-rate [link-speed]][pir]
{peak-rate [data-rate] | percent cir-link-percent} [be
peak-burst-rate [link-speed]] [conform {transmit |
set-prec-transmit | set-dscp-transmit | set-cos-transmit
| set-qos-transmit} [exceed {drop} [violate {drop |
set-cos-transmit | set-dscp-transmit | set-prec-transmit
| set-qos-transmit}]]}
Step 5
[ violate {drop | set-cos-transmit | set-dscp-transmit |
set-prec-transmit | set-qos-transmit}]
Step 6
exit
Example:
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)#
Step 7
exit
Example:
switch(config-pmap-qos)# exit
switch(config)#
Cisco Nexus 9000 Series NX-OS Quality of Service Configuration Guide, Release 7.x
94
Purpose
Enters global configuration mode.
Creates or accesses the policy map named policy-map-name
and then enters policy-map mode. The policy-map name
can contain alphabetic, hyphen, or underscore characters,
is case sensitive, and can be up to 40 characters.
Creates a reference to class-map-name and enters
policy-map class configuration mode. The class is added
to the end of the policy map unless insert-before is used
to specify the class to insert before. Use the class-default
keyword to select all traffic that is not currently matched
by classes in the policy map.
Polices cir in bits or as a percentage of the link rate. The
conform action is taken if the data rate is <= cir. If be and
pir are not specified, all other traffic takes the violate action.
If be or violate are specified, the exceed action is taken if
the data rate <= pir, and the violate action is taken
otherwise. The actions are described in the Policer Actions
for Exceed or Violate table and the Policer Actions for
Conform table. The data rates and link speeds are described
in the Data Rates for the police Command table and the
Burst Sizes for the police Command table.
set-cos-transmit—Set cos and send it.
set-dscp-transmit—Set dscp and send it.
set-prec-transmit—Set precedence and send it.
set-qos-transmit—Set qos-group and send it.
Exits policy-map class configuration mode and enters
policy-map mode.
Exits policy-map mode and enters global configuration
mode.
Configuring Policing

Advertisement

Table of Contents
loading

Table of Contents