17-57
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 17 Configuring Dynamic Subscriber Services
Queuing PPP Sessions on ATM VCs
The following example shows how to configure a hierarchical QoS policy. In the example, the
child-policy configures QoS features for two traffic classes: Premium and Silver. Premium traffic has
priority and is policed at 40 percent. The router sets the IP precedence of Premium traffic to precedence
level 3. Silver traffic is policed at 80000 bps and IP precedence level 3 is set. The child-policy is applied
to the Parent policy class-default class, which shapes traffic to 200,000 Kbps.
Router(config)#
policy-map child-policy
Router(config-pmap)#
class Premium
Router(config-pmap-c)#
priority
Router(config-pmap-c)#
police percent 40
Router(config-pmap-c)#
set ip precedence 3
Router(config-pmap-c)#
class Silver
Router(config-pmap-c)#
police 80000 10000 conform-action transmit exceed-action drop
Router(config-pmap-c)#
set ip precedence 5
Router(config-pmap-c)#
exit
Router(config-pmap)#
policy-map Parent
Router(config-pmap)#
class class-default
Router(config-pmap-c)#
shape 200000
Router(config-pmap-c)#
service-policy output child-policy
Router(config-pmap-c)#
exit
Router(config-pmap)#
exit
Router(config)#
Associating the Hierarchical Policy Map with a Virtual Template
A virtual template is a logical interface whose configuration can specify generic configuration
information for a specific purpose, user-specific configuration information, and router-dependent
information. You configure a virtual template on an interface and apply QoS policy maps to the virtual
template. The virtual template inherits the QoS features specified in the policy map. When the router
establishes sessions on an interface, the router applies the QoS features specified in the virtual template
configuration to the virtual access interfaces (VAIs) created for the sessions, including the QoS features
specified in the policy map attached to the virtual template.
To associate the hierarchical policy map with a virtual template, enter the following commands
beginning in global configuration mode:
Command
Purpose
Step 1
Router(config)#
interface
virtual-template
template-number
Creates a virtual template and enters interface configuration
mode.
template-number
is the number you assign to the virtual template
interface to identify it. Valid values are from 1 to 200.
Note
You can configure up to 200 virtual template interfaces on
the router.
Step 2
Router(config-if)#
service-policy
{
input
|
output
}
policy-map-name
Attaches the policy map you specify to the virtual template
interface in the inbound or outbound direction that you specify.
input
specifies to apply the policy map to inbound traffic.
output
specifies to apply the policy map to outbound traffic.
policy-map-name
is the name of a previously configured policy
map.
Step 3
Router(config-if)#
exit
Exits interface configuration mode.