Cisco ME 3400 Command Reference Manual page 270

Ethernet access switch
Table of Contents

Advertisement

Chapter 2
Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands
match vlan
Once a per-port, per-vlan hierarchical policy-map is attached to an interface, a parent-class with
vlan-based classification can not be dynamically added or removed. The service policy needs to be
detached from the interface before making this configuration change.
When the child policy map attached to a VLAN or set of VLANs contains only Layer 3 classification
(match ip dscp, match ip precedence, match IP ACL), you must be careful to ensure that these VLANs
are not carried on any port other than the one on which this per-port, per-VLAN policy is attached. Not
following this restriction could result in improper QoS behavior for traffic ingressing the switch on these
VLANs.
We also recommend that you restrict VLAN membership on the trunk ports to which the per-port,
per-VLAN is applied by using the switchport trunk allowed vlan interface configuration command.
Overlapping VLAN membership between trunk ports that have per-port, per-VLAN policies with Layer
3 classification could also result in unexpected QoS behavior.
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.
Examples
In this example, the class maps in the child-level policy map specify matching criteria for voice and
video traffic, and the child policy map sets the action for input policing each type of traffic. The
parent-level policy map specifies the VLANs to which the child policy maps are applied on the specified
port.
Switch(config)# class-map match-any dscp-23 video
Switch(config-cmap)# match ip dscp 23
Switch(config-cmap)# exit
Switch(config)# class-map match-any dscp-63 voice
Switch(config-cmap)# match ip dscp-63
Switch(config-cmap)# exit
Switch(config)# class-map match-any customer-1-vlan
Switch(config-cmap)# match vlan 100
Switch(config-cmap)# match vlan 200
Switch(config-cmap)# match vlan 300
Switch(config-cmap)# exit
You can also enter the match criteria as match vlan 100 200 300 with the same result.
Note
Switch(config)# policy-map child policy-1
Switch(config-pmap)# class dscp-63 voice
Switch(config-pmap-c)# police cir 10000000 bc 50000
Switch(config-pmap-c)# conform-action set-cos-transmit 5
Switch(config-pmap-c)# exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# class dscp-23 video
Switch(config-pmap-c)# set cos 4
Switch(config-pmap-c)# set ip precedence 4
Switch(config-pmap-c)# exit
Switch(config)# policy-map parent-customer-1
Switch(config-pmap)# class customer-1-vlan
Switch(config-pmap-c)# service-policy ingress-policy-1
Switch(config-pmap-c)# exit
You can verify your settings by entering the show class-map privileged EXEC command.
Cisco ME 3400 Ethernet Access Switch Command Reference
2-244
OL-9640-07

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents