30-12
Catalyst2950 and Catalyst2955 Switch Software Configuration Guide
78-11380-10
Chapter30 Co nf iguring QoS
Configuring Auto-QoS
If you entered the auto qos voip cisco-softphone command,
the switch automatically creates class maps and policy maps. Switch(config)# class-map match-all
AutoQoS-VoIP-RTP-Trust
Switch(config-cmap)# match ip dscp 46
Switch(config)# class-map match-all
AutoQoS-VoIP-Control-Trust
Switch(config-cmap)# match ip dscp 24 26
Switch(config)# policy-map AutoQoS-Police-SoftPhone
Switch(config-pmap)# class AutoQoS-VoIP-RTP-Trust
Switch(config-pmap-c)# set ip dscp 46
Switch(config-pmap-c)# police 1000000 4096
exceed-action drop
Switch(config-pmap)# class
AutoQoS-VoIP-Control-Trust
Switch(config-pmap-c)# set ip dscp 24
Switch(config-pmap-c)# police 1000000 4096
exceed-action drop
After creating the class maps and policy maps, the switch
automatically applies the policy map called
AutoQoS-Police-SoftPhone to an ingress interface on which
auto-QoS with the Cisco SoftPhone feature is enabled.
Switch(config-if)# service-policy input
AutoQoS-Police-SoftPhone
The switch automatically assigns egress queue usage (as
shown in Table30-3 on page 30-10) on this interface.
The switch enables the egress expedite queue and assigns
WRR weights to queues 1, 2, and 3. (The lowest value for a
WRR queue is 1. When the WRR weight of a queue is set to 0,
this queue becomes an expedite queue.)
The switch configures the CoS-to-egress-queue map:
CoS values 0 and 1 select queue 1.
CoS values 2 and 4 select queue 2.
CoS values 3, 6, and 7 select queue 3.
CoS value 5 selects queue 4 (expedite queue).
Because the expedite queue (queue 4) contains the VoIP data
traffic, the queue is serviced until empty.
Switch(config)# wrr-queue bandwidth 10 20 70 1
Switch(config)# no wrr-queue cos-map
Switch(config)# wrr-queue cos-map 1 0 1
Switch(config)# wrr-queue cos-map 2 2 4
Switch(config)# wrr-queue cos-map 3 3 6 7
Switch(config)# wrr-queue cos-map 4 5
Table30-4 Generated Auto-QoS Configuration
Description Automatically Generated QoS Command Equivalent