RP/0/RP0/CPU0:router#
show run policy-map pm2
policy-map pm2
class p2
set precedence 3
!
class class-default
!
end-policy-map
!
Task ID
Operations
Task
ID
read,
write
qos
Examples
This example shows how to create a policy map called policy1, which is defined to shape class1
traffic at 30 percent and default class traffic at 20 percent.
RP/0/RP0/CPU0:router(config)#
class-map class1
RP/0/RP0/CPU0:router(config-cmap)#
match precedence 3
RP/0/RP0/CPU0:router(config-cmap)#
exit
RP/0/RP0/CPU0:router(config)#
policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)#
class class1
RP/0/RP0/CPU0:routerconfig-pmap-c)#
shape average percent 30
RP/0/RP0/CPU0:router(config-pmap-c)#
exit
RP/0/RP0/CPU0:router(config-pmap)#
class class-default
RP/0/RP0/CPU0:router(config-pmap-c)#
shape average percent 20
The default class is used for packets that do not satisfy configured match criteria for class1. Class1
must be defined before it can be used in policy1, but the default class can be directly used in a policy
map, as the system defines it implicitly.
Modular QoS Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers
3
QoS Classification Commands
class (policy-map)