match protocol

To configure a class map to use a specific protocol as a match criterion, use the match protocol command. To remove the specified protocol as a match criteria, use the no form of this command.

match [not] protocol protocol-name

no match [not] protocol protocol-name

Syntax Description

not

(Optional) Negates the specified match result.

protocol-name

Specified protocol name. Valid values are shown in Table 9-3.


Command Default

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

The list of valid protocol names is shown in Table 9-3.

Table 9-3 Protocol Names

Argument
Description

arp

Address Resolution Protocol (ARP)

clns_es

CLNS End Systems

clns_is

CLNS Intermediate System

dhcp

Dynamic Host Configuration (DHCP)

ldp

Label Distribution Protocol (LDP)

netbios

NetBIOS Extended User Interface (NetBEUI)


To specify more than one protocol, enter the command more than once with the desired protocol value each time.

Examples

This example shows how to match on a specified protocol:

switch(config)# class-map my_test
switch(config-cmap-qos)# match protocol ldp

Related Commands

Command
Description

show class-map

Displays class maps.