Software Configuration of ATM ISE Line Cards for Cisco 12000 Series Routers
Configuring Modular QoS CLI
84
Cisco IOS Release 12.0(27)S
Configuring Modular QoS CLI
The Modular QoS CLI (MQC) is a CLI structure that allows users to create traffic policies and attach
these policies to interfaces. A traffic policy contains a traffic class and one or more QoS features. A
traffic class is used to classify traffic, while the QoS features in the traffic policy determine how to treat
the classified traffic.
Modular QoS CLI configuration includes the following three steps:
•
Defining a Traffic Class, page 84
•
Creating a Traffic Policy, page 85
•
Attaching a Traffic Policy to a PVC, page 90
Defining a Traffic Class
The
class-map
command is used to create a traffic class. To create a traffic class containing match
criteria, use the
class-map
command to specify the traffic class name, then use a
match
command in
class map configuration mode.
The syntax of the
class-map
command is as follows:
class-map
[
match-any
|
match-all
]
class-name
no
class-map
[
match-any
|
match-all
]
class-name
The
class-map match-all
command is used when all the match criteria in the traffic class must be met
for a packet to match the specified traffic class. The
class-map match-any
command is used when the
first possible match criterion from a list of match criteria must be met for a packet to match the specified
traffic class. If neither match-all nor match-any is specified, the traffic class will behave in a manner
consistent with
class-map match-all
command.
For additional information on using the match-any and match-all options, see the
“Using the class-map
match-any and class-map match-all Commands” section on page 85
.
Command
Purpose
Router(config)#
class-map
class-map-name
Specifies the user-defined name of the traffic class.
Router(config)#
class-map match-all
class-map-name
Specifies a logical AND operator for all matching statements
under this traffic class.
Router(config)#
class-map match-any
class-map-name
Specifies a logical OR operator for all matching statements under
this traffic class.
Router(config-cmap)#
match access-group
access-group
Specifies the numbered access list against whose contents packets
are checked to determine if they belong to the class.
Router (config-cmap)#
match any
Specifies that all packets will be matched.
Router (config-cmap)#
match ip dscp
number
Specifies up to eight differentiated services code point (DSCP)
values used as match criteria. The value of each service code point
is between 0 and 63.
Router (config-cmap)#
match ip precedence
number
Specifies up to eight IP precedence values used as match criteria.