This command adds to the specified class definition a match condition based on the protocol type using a single keyword notation or a numeric value notation.
To specify the match condition using a single keyword, use one of the following: icmp, igmp, ip, tcp, udp, ipv6, gre, and icmpv6.
To specify the match condition using a numeric value notation, the protocol number is a standard value assigned by IANA and is interpreted as an integer from 0 to 255. Use the [not] option to negate the match condition.
Default | None |
Format | match [not] protocol {0-255 | { icmp | igmp | ip | tcp | udp | ipv6 | gre | icmpv6} | none} |
Mode | Class-Map Config |
Example: This example shows the process of configuring the protocol type tcp for a give class-map test-class-map
(switch) (Config)#class-map match-all test-class-map (switch) (Config-classmap)# match protocol tcp