class-map
To define a traffic class and the associated rules that match packets to the class, use the
class-map
command
in XR Config mode. To remove an existing class map from the router, use the
no
form of this command.
class-map
[
type [traffic | qos]
]
[match-all] [match-any] class-map-name
no class-map
[
type [traffic | qos
]
]
[match-all] [match-any] class-map-name
Syntax Description
(Optional) Specifies a quality-of-service (QoS) class-map.
type qos
(Optional) Specifies traffic type class-map.
traffic
(Optional) Specifies a match on all of the match criteria.
match-all
(Optional) Specifies a match on any of the match criteria. This is the default.
match-any
Name of the class for the class map. The class name is used for the class map and to
configure policy for the class in the policy map. The class name can be a maximum of
63 characters, must start with an alphanumeric character, and in addition to alphanumeric
characters, can contain any of the following characters: . _ @ $ % + | # : ; - =
class-map-name
Command Default
Type is QoS when not specified.
Command Modes
XR Config mode
Command History
Modification
Release
This command was introduced.
Release 6.0
Usage Guidelines
The
class-map
command specifies the name of the class for which you want to create or modify class map
match criteria. Use of this command enables class map configuration mode in which you can enter any
match
command to configure the match criteria for this class. Packets arriving on the interface are checked against
the match criteria configured for a class map to determine if the packet belongs to that class.
These commands can be used in a class map match criteria for the ingress direction:
•
match access-group
•
match [not] dscp
•
match [not] mpls experimental topmost
•
match [not] precedence
•
match [not] protocol
Task ID
Operations
Task
ID
read,
write
qos
Modular QoS Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers
4
QoS Classification Commands
class-map