Administrator Guide

Layer 2 Switching Commands 703
igmp—Match IGMP protocol packets (
Ethertype 0x0800 and IPv4
protocol 2).
tcp—Match TCP packets (Ethertype 0x0800 and IPv4 protocol 6 or
Ethertype 0x86dd and IPv6 Next Header 6
udp—Match UDP packets (Ethertype 0x0800 and IPv4 protocol 17 or
Ethertype 0x86dd and IPv6 Next Header 17)
gre—Match GRE protocol packets (Ethertype 0x0800 and IPv4 protocol
47 or Ethertype 0x86dd and IPv6 Next Header 47)
icmpv6—Match IPv6 ICMP packets (Ethertype 0x86dd and IPv6 Next
Header 58)
Default Configuration
The default is match protocol ip (Ethertype 0x0800).
Command Mode
Class-Map Configuration mode
User Guidelines
Use the match protocol none command to remove any match condition for
Ethertype or Protocol number. Only one Ethertype match protocol statement
can appear in a class-map. Entering a match protocol statement overrides any
prior protocol match.
Prior to entering a match access-group command other than type IPv4 in
class-map configuration mode, it is necessary to enter the corresponding
match protocol command. For example, to match an IPv6 access-group, issue
the match protocol ipv6 command first. Use match protocol none to match a
MAC access-group. Only a single match protocol command may be issued.
If an ACL is referenced in the class-map, it must be of the same type as the
configured Ethertype.
If the match ethertype command is configured, match protocol may not be
configured, and vice versa.
Command History
Command introduced in version 6.5 firmware