Match Vlan - Cisco ME 3800X Command Reference Manual

Hide thumbs Also See for ME 3800X:
Table of Contents

Advertisement

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
class-map
show class-map
Cisco ME 3800X and ME 3600X Switch Command Reference
2-180
Chapter 2
Description
Creates a class map to be used for matching packets to a specified class name.
Displays quality of service (QoS) class maps.
Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
OL-28238-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Me 3600x

Table of Contents