Configuration Examples for VLAN Tag-Based QoS
Configuring a VLAN Tag-Based QoS Policy: Example
The following configuration example shows how to configure a VLAN tag-based QoS policy using the
PRE3 hierarchical queuing framework. In the example, the policy map named service1 defines QoS
services for two VLAN traffic classes: vlans_5_to_10 and vlans_11_to_14. The child-policy1 defines
QoS services for voice, video, data, and default traffic, and is applied to both of the VLAN classes in
service1.
policy-map child-policy1
policy-map service1
Configuring a VLAN Tag-Based QoS Policy: Invalid Configuration Example
The following configuration example shows an invalid configuration in which the subinterface-shaper
policy is attached to the Gigabit Ethernet subinterface 1/1/1.5 and the vlangroup-shapers policy is
attached to the main interface, Gigabit Ethernet interface 1/1/1. In this example, the traffic classes
defined in the subinterface-shaper policy match the VLAN-group classes in the vlangroup-shapers
policy. As a result, this configuration is invalid because the router does not support the attachment of a
QoS policy on a subinterface that matches any of the VLAN-group traffic classes in a policy attached to
the main interface.
policy-map subinterface-shaper
!
policy-map vlangroup-shapers
!
interface GigabitEthernet 1/1/1
!
interface GigabitEthernet 1/1/1.5
Cisco 10000 Series Router Quality of Service Configuration Guide
21-14
class voip
police 1000000
priority level 1
class video
police 5000000
priority level 2
class data
bandwidth remaining ratio 500
class class-default
bandwidth remaining ratio 1
class vlans_5_to_10
shape average 10000000
bandwidth remaining ratio 100
service-policy child-policy1
class vlans_11_to_14
shape average 10000000
bandwidth remaining ratio 100
service-policy child-policy1
class class-default
shape average 10000000
class vlan_5_to_10
shape average 10000000
class vlan_11_to_14
shape average 10000000
service-policy output vlangroup-shapers
Chapter 21
VLAN Tag-Based Quality of Service
OL-7433-09