Cisco Catalyst 4500 Series Command Reference Manual page 513

Cisco ios command reference release ios xe 3.4.0sg and ios 15.1(2)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
Command History
Release
12.1(8a)EW
12.2(40)SG
12.2(46)SG
Usage Guidelines
Before entering the match command, you must first enter the class-map global configuration command
to specify the name of the class whose match criteria you want to establish. The match command is used
to specify which fields in the packets are examined to classify the packets. If a packet matches the
specified criteria, the packet is considered a member of the class and is forwarded according to the
quality of service (QoS) specifications set in the traffic policy.
For the match ip dscp dscp-list or the match ip precedence ip-precedence-list command, you can enter
a mnemonic name for a commonly used value. For example, you can enter the match ip dscp af11
command, which is the same as entering the match ip dscp 10 command. You can enter the match ip
precedence critical command, which is the same as entering the match ip precedence 5 command. For
a list of supported mnemonics, enter the match ip dscp ? or the match ip precedence ? command to
see the command-line help strings.
To match only IPv6 packets, you must use the match protocol ipv6 command. To match only IPv4
packets you can use either the ip prefix or the protocol ip keyword.
To match only ARP packets, you must use the match protocol arp command.
You can configure the match cos cos-list, match ip dscp dscp-list, match ip precedence
ip-precedence-list command in a class map within a policy map.
The match cos cos-list command applies only to Ethernet frames that carry a VLAN tag.
The match qos-group command is used by the class-map to identify a specific QoS group value
assigned to a packet. The QoS group value is local to the switch and is associated with a packet on the
input Qos classification.
Packets that do not meet any of the matching criteria are classified as members of the default traffic class.
You configure it by specifying class-default as the class name in the class policy-map configuration
command. For more information, see the
Examples
This example shows how to create a class map called class2, which matches all the inbound traffic with
DSCP values of 10, 11, and 12:
Switch# configure terminal
Switch(config)# class-map class2
Switch(config-cmap)# match ip dscp 10 11 12
Switch(config-cmap)# exit
Switch#
This example shows how to create a class map called class3, which matches all the inbound traffic with
IP-precedence values of 5, 6, and 7 for both IPv4 and IPv6 traffic:
Switch# configure terminal
Switch(config)# class-map class3
Switch(config-cmap)# match ip precedence 5 6 7
Switch(config-cmap)# exit
Switch#
OL-27596 -01
Modification
Support for this command was introduced on the Catalyst 4500 series
switches.
Support extended to Supervisor Engine 6-E and the Catalyst 4900M chassis.
Added support for the match protocol arp command on the Supervisor
Engine 6-E and Catalyst 4900M chassis.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
"class" section on page
2-92.
match (class-map configuration)
2-455

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents