Configuring QoS
Command
Step 3
class {class-map-name | class-default}
Step 4
set cos {cos_value | cos [table
table-map-name] | dscp [table
table-map-name] | precedence [table
table-map-name]}
or
set [ip] dscp {dscp_value | cos [table
table-map-name] | dscp [table
table-map-name] | precedence [table
table-map-name]}
or
set [ip] precedence {precedence_value |
cos [table table-map-name] | dscp [table
table-map-name] | precedence [table
table-map-name]}
or set qos-group value
Step 5
exit
Step 6
exit
Step 7
interface interface-id
Step 8
service-policy input policy-map-name
Step 9
end
Step 10
show policy-map [policy-map-name
[class class-map-name]]
Step 11
copy running-config startup-config
Use the no form of the appropriate command to delete a policy map or table map or remove an assigned
CoS, DSCP, precedence, or QoS-group value.
This example uses a policy map to remark a packet. The first marking (the set command) applies to the
QoS default class map that matches all traffic not matched by class AF31-AF33 and sets all traffic to an
IP DSCP value of 1. The second marking sets the traffic in classes AF31 to AF33 to an IP DSCP of 3.
Switch(config)# policy-map Example
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# set ip dscp 1
Switch(config-pmap-c)# exit
Switch(config-pmap)# class AF31-AF33
Switch(config-pmap-c)# set ip dscp 3
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy input Example
Switch(config-if)# exit
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
30-42
Purpose
Enter a class-map name or class-default, and enter policy-map class
configuration mode.
•
For class-map-name, specify the name of the class map.
•
Enter class-default to match all unclassified packets.
If you enter a class-map name, you must have already created the class
map by using the class-map global configuration command.
Mark traffic by setting a new value in the packet, specifying a table map,
or specifying a QoS group.
•
For cos cos_value, enter a new CoS value to be assigned to the
classified traffic. The range is 0 to 7.
For [ip] dscp new-dscp, enter a new DSCP value to be assigned to
•
the classified traffic. The range is 0 to 63.
For [ip] precedence new-precedence, enter a new IP-precedence
•
value to be assigned to the classified traffic. The range is 0 to 7.
•
Or you can configure a CoS, DSCP, or IP precedence table and
optionally enter the table name. If you do not enter table table-map
name, the table map default behavior is copy. See the
Table Maps" section on page
•
For qos-group value, identify a QoS group to be used at egress to
identify specific packets. The range is from 0 to 15.
Return to policy-map configuration mode.
Return to global configuration mode.
Enter interface configuration mode for the interface to which you want to
attach the policy.
Attach the policy map (created in Step 2) to the ingress interface.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Chapter 30
Configuring QoS
"Configuring
30-33.
78-17058-01