Step 1
|
enable
|
Enables privileged EXEC mode.
|
Step 2
|
configure
terminal
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
policy-map
policy-map-name
Router(config)# policy-map policy-map-name
|
Creates or modifies the child policy. Enters policy-map configuration mode.
policy-map-name is the name of the child policy map.
|
Step 4
|
class
class-map-name
Router(config-pmap)# class class-map-name
|
Assigns the traffic class you specify to the policy map. Enters policy-map class configuration mode.
class-map-name is the name of a previously configured class map and is the traffic class for which you want to define QoS
actions.
Repeat Steps 2 through 6 for each traffic class you want to include in the child policy map.
|
Step 5
|
priority level level
Router(config-pmap-c)# priority level level
|
(Optional) Defines multiple levels of a strict priority service model. When you enable a traffic class with a specific level
of priority service, the implication is a single priority queue associated with all traffic enabled with the specified level
of priority service.
level is a number that indicates a specific priority level. Valid values are from 1 (high priority) to 4 (low priority).
Default: 1
|
Step 6
|
police
bps
[burst-normal
burst-max ] [conform-action
action] [exceed-action
action]
violate-action
action
Router(config-pmap-c)# police bps [burst-normal] [burst-max] [conform-action action] [exceed-action action] [violate-action action]
|
(Optional) Configures traffic policing.
bps is the average rate in bits per second. Valid values are 8000 to 200000000.
(Optional) burst-normal is the normal burst size in bytes. Valid values are 1000 to 51200000. The default normal burst size
is 1500 bytes.
(Optional) burst-max is the excess burst size in bytes. Valid values are 1000 to 51200000.
(Optional) conform-action action indicates the action to take on packets that conform to the rate limit.
(Optional) exceed-action action indicates the action to take on packets that exceed the rate limit.
(Optional) violate-action action indicates the action to take on packets that violate the normal and maximum burst sizes.
|
Step 7
|
set cos value
Router(config-pmap-c)# set cos value
|
(Optional) Sets the Layer 2 class of service (CoS) value of an outgoing packet.
value is a specific IEEE 802.1Q CoS value from 0 to 7.
|
Step 8
|
bandwidth remaining ratio
Router(config-pmap-c)# bandwidth remaining ratio
|
(Optional) Specifies a bandwidth-remaining ratio for class-level or subinterface-level queues to be used during congestion
to determine the amount of excess bandwidth (unused by priority traffic) to allocate to non-priority queues.
ratio specifies the relative weight of this subinterface or queue with respect to other subinterfaces or queues. Valid values
are from 1 to 1000.
|
Step 9
|
exit
Router(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
Step 10
|
policy-map
policy-map-name
Router(config-pmap)# policy-map policy-map-name
|
Creates or modifies the parent policy.
policy-map-name is the name of the parent policy map.
|
Step 11
|
class
class-default
Router(config-pmap)# class class-default
|
Configures or modifies the parent class-default class.
You can configure only the class-default class in a parent policy. Do not configure any other traffic class.
|
Step 12
|
bandwidth remaining ratio
Router(config-pmap-c)# bandwidth remaining ratio
|
(Optional) Specifies a bandwidth-remaining ratio for class-level or subinterface-level queues to be used during congestion
to determine the amount of excess bandwidth (unused by priority traffic) to allocate to non-priority queues.
ratio specifies the relative weight of this subinterface or queue with respect to other subinterfaces or queues. Valid values
are from 1 to 1000.
|
Step 13
|
shape
[average ]
mean-rate [burst-size ] [excess-burst-size ]
Router(config-pmap-c)# shape [average ] mean-rate [burst-size ] [excess-burst-size ]
|
Shapes traffic to the indicated bit rate and enables ATM overhead accounting.
(Optional) average is the committed burst (Bc) that specifies the maximum number of bits sent out in each interval. This
option is only supported on the PRE3.
mean-rate is also called committed information rate (CIR). Indicates the bit rate used to shape the traffic, in bits per
second. When this command is used with backward explicit congestion notification (BECN) approximation, the bit rate is the
upper bound of the range of bit rates that are permitted.
(Optional) burst-size is the number of bits in a measurement interval (Bc).
(Optional) excess-burst-size is the acceptable number of bits permitted to go over the Be.
|
Step 14
|
service-policy
policy-map-name
Router(config-pmap-c)# service-policy policy-map-name
|
Applies the child policy to the parent class-default class.
policy-map-name is the name of the child policy map configured in step 1.
|