QoS Commands 407
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 add to the specified
class definition a match condition based on the value of the IP Protocol field in a packet using a
single keyword notation or a numeric value notation.
Syntax
match protocol {
protocol-name
|
protocol-number
}
•
protocol-name
— Specifies one of the supported protocol name keywords. The supported
values are
icmp
,
igmp
,
ip
,
tcp
, and
udp
.
•
protocol-number
— Specifies the standard value assigned by IANA. (Range 0–255)
Default Configuration
This command has no default configuration.
Command Mode
Class-Map Configuration mode
User Guidelines
This command has no user guidelines.
Example
The following example displays adding a match condition based on the “ip” protocol name
keyword.
console(config-classmap)#match protocol ip