| Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
| Step 2 |
configure
terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
| Step 3 |
policy-map
policy-map-name
Example:
Router(config)# policy-map session-a-child
|
Creates a child policy and enters policy-map configuration mode.
- Enter the policy-map name.
|
| Step 4 |
class
class-map-name
Example:
Router(config-pmap)# class voip
|
Configures the traffic class that you specify and enters policy-map class configuration mode.
- Enter the name of a previously configured class map .
|
| Step 5 | bandwidth {bandwidth-kbps |
percentpercentage|
remainingpercentpercentage}
Example:
Router(config-pmap-c)# bandwidth 10000
Example:
|
(Optional) Enables class-based weighted fair queueing based on the keywords and arguments specified.
- bandwidth-kbps--Specifies the minimum bandwidth allocated for a class belonging to a policy map. Valid values are from 1 to 2,000,000.
- percent percentage--Specifies the minimum percentage of the link bandwidth allocated for a class belonging to a policy map. Valid values are from 1 to 100.
- remaining percent percentage--Specifies the minimum percentage of unused link bandwidth allocated for a class belonging to a policy map. Valid values are from 1 to 99.
|
| Step 6 |
exit
Example:
Router(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
| Step 7 |
exit
Example:
Router(config-pmap)# exit
|
Exits policy-map configuration mode.
|
| Step 8 |
policy-map
policy-map-name
Example:
Router(config)# policy-map session_a_parent
|
Creates a parent policy and enters policy-map configuration mode.
- Enter the policy-map name.
|
| Step 9 |
class
class-default
Example:
Router(config-pmap)# class class-default
|
Configures the traffic class as class-default and enters policy-map class configuration mode.
| Note
| Do not configure any other traffic class.
|
|
| Step 10 |
shape
average {cir|
percentpercentage}
Example:
Router(config-pmap-c)# shape average 10000000
|
Specifies average-rate traffic shaping for all traffic that does not match any other traffic class.
- Enter the
average keyword followed by the committed information rate (CIR), in bits per second (bps), or enter the
average keyword followed by
percentage keyword to specify a percentage of the interface bandwidth for the CIR. Valid values are from 1 to 100.
|
| Step 11 |
bandwidth
remaining
ratio
ratio
Example:
Router(config-pmap-c)# bandwidth remaining ratio 10
|
Specifies the weight (ratio) for the ATM VC.
- Enter the relative weight of this ATM VC (or class queue). This number (ratio) indicates the proportional relationship between the other ATM VCs or class queues.
|
| Step 12 |
service-polic
ypolicy-map-name
Example:
Router(config-pmap-c)# service-policy session-a-child
|
Applies the child policy map to the parent class-default class.
- Enter the name of a previously configured child policy map.
|
| Step 13 |
exit
Example:
Router(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
| Step 14 |
exit
Example:
Router(config-pmap)# exit
|
Exits policy-map configuration mode.
|
| Step 15 |
interface
virtual-template
number
Example:
Router(config)# interface virtual-template 1
|
Creates a virtual template and enters interface configuration mode.
- Enter the virtual template number. Valid range is from 1 to 4095.
|
| Step 16 |
service-policy
output
policy-map-name
Example:
Router(config-if)# service-policy output session_a_parent
|
Applies the service policy to the virtual interface.
- Enter the name of the previously configured parent policy map.
| Note
| You must specify the output keyword to apply the service policy to outbound traffic on the interface.
|
|
| Step 17 |
end
Example:
|
(Optional) Returns to privileged EXEC mode.
|