The discard class value is used as a matching criterion only. The value has no mathematical significance. For
instance, the discard class value 2 is not greater than 1. The value simply indicates that a packet marked with
the discard class of 2 should be treated differently than a packet marked with a discard class value of 1.
The match discard-class command is applied only for egress policies.Note
Task ID
OperationsTask ID
read, writeqos
Examples
The following example shows a service policy called policy1 attached to an interface. In this example, class
map discard class5 is created to evaluate all packets leaving GigabitEthernet interface 0/1/0/9 for a discard-class
value of 5. Packets marked with the discard class value of 5 are queued to a class queue with the bandwidth
setting 300 kbps.
RP/0/RP0/CPU0:router(config)# class-map discard-class5
RP/0/RP0/CPU0:router(config-cmap)# match discard-class 5
RP/0/RP0/CPU0:router(config-cmap)# exit
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class discard-class5
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth 300
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# exit
RP/0/RP0/CPU0:router(config)# interface gigabitethernet 0/1/0/9
RP/0/RP0/CPU0:router(config-if)# service-policy output policy1
Related Commands
DescriptionCommand
Defines a traffic class and the associated rules that match packets to
the class.
class-map, on page 12
Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
policy-map, on page 67
Sets the discard class and Quality of Service (QoS) group identifiers
on IP Version 4 (IPv4) or Multiprotocol Label Switching (MPLS)
packets.
set discard-class, on page 100
Sets the quality of service (QoS) group identifiers on packets.set qos-group, on page 108
Enables packet matching on the basis of the ATM operations,
administration, and maintenance (OAM) or cell loss priority (CLP).
match atm, on page 34
Identifies specified class of service (CoS) values as a match criteria
in a class map.
match cos, on page 36
Identifies a specific destination MAC address explicitly as a match
criterion in a class map.
match destination-address, on page 39
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
42 OL-23235-03
Quality of Service Commands on the Cisco IOS XR Software
match discard-class