match protocol

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.

Note: This command does not validate the protocol number value against the current list defined by IANA.
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

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail [email protected]

LANCOM Logo
OSZAR »