Chapter 4
Attaching 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:
Command
Step 1
Router(config)# interface type
slot/module/port.subinterface
Step 2
Router(config-subif)# encapsulation dot1q
vlanid
Step 3
Router(config-subif)# service-policy
[input | output] policy-map-name
Configuration Example for Attaching a QoS Service Policy to a VLAN Subinterface
Example 4-14
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.
2.
OL-7433-09
shows how to attach a policy map named bronze to VLAN 4 on GigabitEthernet
The router uses a template of operational parameters called a virtual template interface to create and
configure the VAI.
When the user connection terminates, the router deletes the VAI and frees the resources for other
client uses.
Attaching Virtual Access Interface QoS Service Policies
Purpose
Specifies the Ethernet subinterface to which you want to attach
the QoS service policy. Enters subinterface configuration mode.
Creates a VLAN subinterface.
dot1q defines the encapsulation format as IEEE 802.1Q VLAN.
vlanid is a number that identifies the VLAN.
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.
For QoS policies containing the bandwidth, priority,
Note
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.
The router applies the service policy to only this
Note
individual VLAN subinterface.
Cisco 10000 Series Router Quality of Service Configuration Guide
4-23