4-23
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 4 Attaching Service Policies
Attaching Virtual Access Interface QoS Service Policies
Attaching QoS Service Policies to VLAN Subinterfaces
To attach a QoS service policy to a VLAN subinterface, enter the following commands beginning in
global configuration mode:
Configuration Example for Attaching a QoS Service Policy to a VLAN Subinterface
Example 4-14
shows how to attach a policy map named bronze to VLAN 4 on GigabitEthernet
subinterface 1/0/0.3 for outbound traffic.
Example 4-14 Attaching a QoS Policy to an Individual VLAN
Router(config)#
interface GigabitEthernet 1/0/0.3
Router(config-subif)#
encapsulation dot1q 4
Router(config-subif)#
service-policy output bronze
Attaching Virtual Access Interface QoS Service Policies
A virtual access interface (VAI) is a virtual interface that the router dynamically creates and configures
when a remote user initiates a session to the Cisco 10000 series router.
1.
The router uses a template of operational parameters called a
virtual template interface
to create and
configure the VAI.
2.
When the user connection terminates, the router deletes the VAI and frees the resources for other
client uses.
Command
Purpose
Step 1
Router(config)#
interface
type
slot
/
module
/
port.subinterface
Specifies the Ethernet subinterface to which you want to attach
the QoS service policy. Enters subinterface configuration mode.
Step 2
Router(config-subif)#
encapsulation dot1q
vlanid
Creates a VLAN subinterface.
dot1q
defines the encapsulation format as IEEE 802.1Q VLAN.
vlanid
is a number that identifies the VLAN.
Step 3
Router(config-subif)#
service-policy
[
input
|
output
]
policy-map-name
Attaches the service policy you specify to the subinterface.
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.
Note
The router applies the service policy to only this
individual VLAN subinterface.