Cisco Cisco IOS Software Release 12.2(27)SBC
QoS—VLAN Tag-Based
Configuration Examples for QoS—VLAN Tag-Based
17
QoS - VLAN Tag-Based
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.
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
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
policy-map service1
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
QoS—VLAN Tag-Based: 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 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
class class-default
shape average 10000000
!
policy-map vlangroup-shapers
class vlan_5_to_10
shape average 10000000
class vlan_11_to_14
shape average 10000000
!
interface GigabitEthernet 1/1/1
service-policy output vlangroup-shapers
!
interface GigabitEthernet 1/1/1.5