class-map
To create a class map to be used for matching packets to a specified class and to enter QoS class-map configuration mode, use the class-map command in global configuration mode. To remove an existing class map from a device, use the no form of this command.
class-map { [ type inspect match-all ] | [ match-any ] } class-map-name
no class-map { [ type inspect match-all ] | [ match-any ] }
Syntax Description
type inspect |
(Optional) Specifies the class-map type as inspect. |
||
match-all |
(Optional) Determines how packets are evaluated when multiple match criteria exist. Matches statements under this class map based on the logical AND function. A packet must match all statements to be accepted. If you do not specify the match-all or match-any keyword, the default keyword used is match-all . |
||
match-any |
(Optional) Determines how packets are evaluated when multiple match criteria exist. Matches statements under this class map based on the logical OR function. A packet must match any of the match statements to be accepted. If you do not specify the match-any or match-all keyword, the default keyword is used match-all . |
||
class-map-name |
Name of the class for the class map. The class name is used for both the class map and to configure a policy for the class in the policy map.
|
Command Default
A class map is not configured.
Command Modes
Global configuration (config)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v |
Command qualified for use in Cisco vManage CLI templates. |
Usage Guidelines
For usage guidelines, see the Cisco IOS XE class-map
command.
class-map match-any BestEffort
match qos-group 3
!
class-map match-any Bulk
match qos-group 4
!
class-map match-any Critical
match qos-group 1
!
class-map match-any Critical-Low
match qos-group 2
!
class-map match-any BULK
match qos-group 2
!
class-map match-any CONTROL-SIGNALING
match qos-group 4
!
class-map match-any CRITICAL-DATA
match qos-group 1
!
class-map match-any Default
match qos-group 5
!
class-map match-any INTERACTIVE-VIDEO
match qos-group 3
!
class-map match-any LLQ
match qos-group 0
!
class-map match-any Queue0
match qos-group 0
!
class-map match-any Queue1
match qos-group 1
!
class-map match-any Queue2
match qos-group 2
!
class-map match-any Queue3
match qos-group 3
!
class-map match-any Queue4
match qos-group 4
!
class-map match-any Queue5
match qos-group 5
!
class-map type inspect match-all cmap
match access-group name cmap
!
class-map match-any Queue4
match qos-group 0
!
The following example configures the match criterion for a class map on the basis of a specified protocol for zone based policy firewall:
class-map match-any aa1-cm0_
match protocol test
match protocol mpeg2-ts
!