Cisco Cisco IOS Software Release 12.2(27)SBC

다운로드
페이지 22
QoS—VLAN Tag-Based
  How to Configure QoS—VLAN Tag-Based
9
QoS - VLAN Tag-Based
Configuring VLAN Group Class Maps
Use the following procedure to configure a VLAN group class map, which creates a VLAN group traffic 
class.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
class-map
 [match-anyclass-map-name
4.
match vlan
 vlanid
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode. 
Enter your password if prompted.
Step 2
configure
 terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
class-map
 match-any class-map-name
Example:
Router(config)# class-map match-any customer1
Creates or modifies a traffic class. Enters class-map 
configuration mode.
(Optional) match-any indicates that if the VLAN ID of 
a packet matches any of the specified VLAN IDs, 
classify the packet as belonging to the traffic class.
Note
The router does not support the match-all keyword 
for VLAN-based classification. 
class-map-name is the name of the class map. You can 
specify the class-default class as the class map name to 
configure a traffic class to which the router assigns all 
of the traffic that does not match another configured 
class.
Step 4
match vlan
 vlanid
Example:
Router(config-cmap)# match vlan 1-100 150
Configures VLANs as the criteria the router uses to match 
packets to the traffic class.
vlanid is a VLAN identification number(s) or a range of 
numbers. Valid values are from 1 to 4095.