27-31
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter27 Configuring Quality of Service
Configuring QoS
Note Any Input or Output policy that uses a class map with the match ip precedence or match ip dscp
class-map commands, requires that the port on which the packet is received, be configured to trustdscp.
If the incoming port trust state is not set to trustdscp, the IP packet DSCP/IP-precedence is not used
for matching the traffic; instead the receiving port’s default DSCP is used.
Note The interfaces on the Catalyst 4500 series switch do not support the match classmap, match
destination-address, match input-interface, match mpls, match not, match protocol, match
qos-group, and match source-address keywords.
Verifying Class Map Configuration
To verify class-map configuration, perform this task:
This example shows how to create a class map named ipp5 and how to configure filtering to match traffic
with IP precedence 5:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# class-map ipp5
Switch(config-cmap)# match ip precedence 5
Switch(config-cmap)# end
Switch#
This example shows how to verify the configuration:
Switch# show class-map ipp5
Class Map match-all ipp5 (id 1)
Match ip precedence 5
Switch#
Configuring a Policy Map
You can attach only one policy map to an interface. Policy maps can contain one o r more policy-map
classes, each with different match criteria and policers.
Configure a separate policy-map class in the policy map for each type of traffic that an interface receives.
Put all commands for each type of traffic in the same policy-map class. QoS does not attempt to apply
commands from more than one policy-map class to matched traffic.
The following sections describe policy-map configuration:
Creating a Policy Map, page 27-32
Configuring Policy-Map Class Actions, page 27-32
Command Purpose
Step1 Switch (config-cmap)# end Exits configuration mode.
Step2 Switch# show class-map
class_name
Verifies the configuration.