![Cisco 10000 Series Скачать руководство пользователя страница 170](http://html.mh-extra.com/html/cisco/10000-series/10000-series_configuration-manual_66373170.webp)
4-26
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 4 Attaching Service Policies
Attaching Virtual Access Interface QoS Service Policies
Applying a QoS Service Policy to a Virtual Template Interface
To apply a QoS service policy to a virtual template interface, enter the following commands beginning
in global configuration mode:
Configuration Example for Applying QoS Policies to Virtual Template Interfaces
Example 4-15
shows how to apply the policy map named policy1 to the virtual template named
virtual-template1 for all inbound traffic. In this example, the virtual template configuration also includes
CHAP authentication and point-to-point protocol (PPP) authorization and accounting.
Example 4-15 Applying QoS Policies to a Virtual Template Interface
Router(config)#
interface virtual-template1
Router(config-if)#
ip unnumbered Loopback1
Router(config-if)#
no peer default ip address
Router(config-if)#
ppp authentication chap vpn1
Router(config-if)#
ppp authorization vpn1
Router(config-if)#
ppp accounting vpn1
Router(config-if)#
service-policy policy1
Command
Purpose
Step 1
Router(config)#
interface virtual-template
number
Creates a virtual template interface and enters interface
configuration mode.
number
is a number from 1 to 200 that identifies the virtual
template.
Step 2
Router(config-if)#
service-policy
[
input
|
output
]
policy-map-name
Attaches the service policy you specify to the virtual template
interface.
input
indicates to apply the service policy to inbound traffic on
the interface.
output
indicates to apply the service policy to outbound traffic
on the interface.
Note
For QoS policies containing the
bandwidth
,
priority
,
random-detect
,
queue-limit
, and
shape
commands,
you must specify the
output
keyword. When you use
these commands with the
input
keyword, the router
ignores the commands.
policy-map-name
is the name of the policy map.