Users Guide

Layer 2 Switching Commands 747
User Guidelines
The ip dscp, ip precedence, and ip tos match conditions are alternative ways
to specify a match criterion for the same Service Type field in the IP header
but with a slightly different user notation.
This specification is the free form version of the IP DSCP/Precedence/TOS
match specification in that you have complete control of specifying which
bits of the IP Service Type field are checked.
Example
The following example displays adding a match condition based on the value
of the IP TOS field in a packet.
console(config-classmap)#match ip tos AA EF
match protocol
Use the match protocol command in Class-Map Configuration mode to
match packets using the EtherType field in the Ethernet frame header. For
certain protocols, an additional match condition for the IP protocol number
is performed.
NOTE: This command is not available on the N1500 Series switches.
Syntax
match protocol {icmp|igmp|ip|ipv6|tcp|udp|gre|icmpv6
|<identifier>|none }
Ethertype only matches:
ip—Match IPv4 protocol packets (Ethertype 0x0800)
ipv6—Match IPv6 protocol packets (Ethertype 0x86dd)
<identifier>—A numerical value (0x0-255) identifying an IPv4 orIPv6
protocol.
Ethertype and Protocol matches:
none—Remove the default or configured Ethertype/Protocol match
criteria. Configure a MAC access-group match.
icmp—Match ICMP protocol packets (
Ethertype 0x0800 and IPv4
protocol 1).