21-10
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 21 VLAN Tag-Based Quality of Service
Configuring VLAN Tag-Based QoS
Example
The following example configuration shows how to configure a VLAN-group policy for inbound traffic.
In the example, QoS policies are created for VLAN traffic (policy1 and policy2) and for default traffic
(policy5). The policy map named input applies QoS services to VLAN groups and to the class-default
class for all of the inbound traffic that does not belong to the VLAN groups classes.
Router(config)#
policy-map policy1
Router(config-pmap)#
class vgrp2
Router(config-pmap-c)#
police percent 20
Router(config-pmap-c)#
class vgrp1
Router(config-pmap-c)#
set cos 2
!
Router(config)#
policy-map policy2
Router(config-pmap)#
class vgrp1
Router(config-pmap-c)#
police 64000
Router(config-pmap-c)#
class vgrp2
Router(config-pmap-c)#
police 512000
!
Router(config)#
policy-map policy5
Router(config-pmap)#
class class-default
Router(config-pmap-c)#
police 8000
!
Router(config)#
policy-map input
Router(config-pmap)#
class vgrp-customer1
Router(config-pmap-c)#
police 512000
Router(config-pmap-c)#
service-policy policy1
Router(config-pmap-c)#
class vgrp-customer2
Router(config-pmap-c)#
police percent 20
Router(config-pmap-c)#
service-policy policy2
Router(config-pmap-c)#
class class-default
Router(config-pmap-c)#
police 512000
Router(config-pmap-c)#
service-policy policy5
Configuring QoS Policies for Traffic Classes—Outbound VLAN Group and Class-Default Classes
To configure an outbound QoS policy for VLAN group traffic classes and the class-default class, enter
the following commands beginning in global configuration mode:
Command or Action
Purpose
Step 1
Router(config)#
policy-map
policy-map-name
Creates or modifies a policy map for outbound traffic.
policy-map-name
is the name of the outbound policy map.
The name can be a maximum of 40 alphanumeric
characters.
Step 2
Router(config-pmap)#
class
class-map-name
Assigns the traffic class you specify to the outbound policy
map. Enters policy-map class configuration mode.
class-map-name
is the name of a previously configured
class map and is the traffic class for which you want to
define QoS actions. For a VLAN-group policy, specify the
name of a VLAN group traffic class.