How to Configure Modular QoS Packet Classification on Cisco ASR 9000 Series Routers
6.
7.
8.
9.
10.
11.
12.
13.
14.
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 map1
Step 4
match [not] cos cos-value [ cos-value1 ...
cos-value7 ]
Example:
RP/0/RSP0/CPU0:router(config-cmap)# match cos 1
Step 5
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-14
Configuring Modular Quality of Service Packet Classification on Cisco ASR 9000 Series Routers
D r a f t — C i s c o C o n f i d e n t i a l
match [not] discard-class discard-class-value [discard-class-value1 ... discard-class-value6]
match [not] dscp [ipv4 | ipv6] dscp-value [dscp-value1 ... dscp-value7]
match [not] mpls experimental topmost exp-value [exp-value1 ... exp-value7]
match [not] precedence [ipv4 | ipv6] precedence-value [precedence-value1 ... precedence-value7]
match [not] protocol protocol value [protocol-value1 ... protocol-value7]
match [not] qos-group [qos-group-value1 ... qos-group-value8]
match source-address mac source-mac-address
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.
•
The cos-value argument is 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-17239-01