2-180
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
match vlan
Before using the
match vlan
command, you must enter the
class-map
global configuration command to
specify the name of the class whose match criteria you want to establish.
You can verify your configuration by entering the
show class-map
privileged EXEC command.
Examples
This example shows how to create a class-map called
parent-class
, which matches incoming traffic with
VLAN IDs in the range from 30 to 40.
Switch(config)#
class-map match-any parent-class
Switch(config-cmap)#
match vlan 30-40
Switch(config-cmap)#
exit
This example shows how to match VLAN and CoS in the same policy. When you attach the service
policy
vlan
to an interface, packets with the outer VLAN of 2 and an outer CoS of 2 are included in class
map
phb
.
Switch(config)#
class-map vlan
Switch(config-cmap)#
match vlan 2
Switch(config-cmap)#
exit
Switch(config)#
class-map phb
Switch(config-cmap)#
match cos 2
Switch(config-cmap)#
exit
Switch(config)#
policy-map phb
Switch(config-pmap)#
class phb
Switch(config-pmap-c)#
bandwidth 1000
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
policy-map vlan
Switch(config-pmap)#
class vlan
Switch(config-pmap-c)#
bandwidth 1000
Switch(config-pmap-c)#
service-policy phb
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
interface gigabitethernet 0/1
Switch(config-if)#
service-policy vlan
Switch(config-if)#
exit
Related Commands
Command
Description
class-map
Creates a class map to be used for matching packets to a specified class name.
show class-map
Displays quality of service (QoS) class maps.
Summary of Contents for ME 3600X
Page 14: ...Contents xiv Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 534: ... 100 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 Chapter xconnect ...
Page 625: ...Index IN 15 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 626: ...Index IN 16 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 627: ...Index IN 17 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 628: ...Index IN 18 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...