How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers
12.
13.
14.
15.
DETAILED STEPS
Command or Action
Step 1
configure
Example:
RP/0/RSP0/CPU0:router# configure
Step 2
class-map [type qos] [match-any] [match-all]
class-map-name
Example:
RP/0/RSP0/CPU0:router(config)# class-map
class201
Step 3
match access-group [ipv4 | ipv6]
access-group-name
Example:
RP/0/RSP0/CPU0:router(config-cmap)# match
access-group ipv4 map1
Step 4
match [not] cos [ cos-value ] [ cos-value0 ...
cos-value7 ]
Example:
RP/0/RSP0/CPU0:router(config-cmap)# match cos 5
Step 5
match [not] cos inner [ inner-cos-value ]
[ inner-cos-value0 ... inner-cos-value7 ]
Example:
RP/0/RSP0/CPU0:router match cos inner 7
Step 6
match destination-address mac
destination-mac-address
Example:
RP/0/RSP0/CPU0:router(config-cmap)# match
destination-address mac 00.00.00
Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide
QC-20
Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers
match [not] protocol protocol value [protocol-value1 ... protocol-value7]
match [not] qos-group [qos-group-value1 ... qos-group-value8]
match vlan [inner] vlanid [vlanid1 ... vlanid7]
end
or
commit
Purpose
Enters global configuration mode.
Enters class map configuration mode.
Creates a class map to be used for matching packets to
•
the class whose name you specify.
If you specific match-any, one of the match criteria
•
must be met for traffic entering the traffic class to be
classified as part of the traffic class. This is the default.
If you specify match-all, the traffic must match all the
match criteria.
(Optional) Configures the match criteria for a class map
based on the specified access control list (ACL) name.
(Optional) Specifies a cos-value in a class map to match
packets.
cos-value arguments are specified as an integer from 0
•
to 7.
(Optional) Specifies an inner-cos-value in a class map to
match packets.
inner-cos-value arguments are specified as an integer
•
from 0 to 7.
(Optional) Configures the match criteria for a class map
based on the specified destination MAC address.
OL-23108-02