Cisco Cisco IOS Software Release 12.2(27)SBC

Page de 22
 
QoS: Per-Session Shaping and Queuing on LNS
  Configuration Examples for Per-Session Shaping and Queuing on LNS
12
Cisco IOS Release 12.2(28)SB
Configuration Examples for Per-Session Shaping and Queuing 
on LNS
This section contains the following examples:
Configuring the Policy Map: Example
This section contains an example of a hierarchical policy map configuration. In this example, two policy 
maps, one called “parent” (the primary or parent policy map) and one called “child” (the secondary or 
child policy map) have been configured.
In this example, traffic shaping has been enabled in the parent policy map, and CBWFQ has been enabled 
in the child policy map. The service-policy command has been used to attach the policy map called child 
to the virtual template interface in the outgoing direction of the interface.
Router> enable
Router# configure terminal
Router(config)# policy-map child
Router(config-pmap)# class class1
Router(config-pmap-c)# bandwidth percent 30
Router(config-pmap-c)# exit
Router> enable
Router# configure terminal
Router(config)# policy-map parent
Router(config-pmap)# class class-default
Router(config-pmap-c)# shape average 128000
Router(config-pmap-c)# service-policy child
Router(config-pmap-c)# exit
Associating the Policy Map with a Virtual Template: Example
This section contains an example of associating a policy map with a virtual template. In this example, 
the policy map called “parent” is associated with virtual template 1. For a hierarchical policy map 
structure, the policy map can be either the parent or child policy map.
Router> enable
Router# configure terminal
Router(config)# interface virtual-template 1
Router(config-if)# service-policy output parent
Router(config-if)# exit