- 论坛徽章:
- 0
|
Beginning in privileged EXEC mode, follow these steps to map CoS ingress values to select one of the egress queues:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
mls qos
Enable QoS on the switch.
Step 3
interface interface-id
Enter interface configuration mode, and specify the egress Gigabit-capable Ethernet interface.
Step 4
wrr-queue cos-map queue-id cos1 ... cosn
Map assigned CoS ingress values to select one of the egress queues.
The default map has these values:
CoS value 0, 1 selects queue 1.
CoS value 2, 3 selects queue 2.
CoS value 4, 5 selects queue 3.
CoS value 6, 7 selects queue 4.
For queue-id, specify the ID of the egress queue. The range is 1 to 4.
For cos1 ... cosn, specify the CoS values that select a queue. Enter up to eight CoS values. Separate each value with a space. The range is 0 to 7.
Step 5
end
Return to privileged EXEC mode.
Step 6
show mls qos interface queueing
Verify your entries.
Step 7
copy running-config startup-config
(Optional) Save your entries in the configuration file.
To return the default CoS-to-egress-queue map, use the no wrr-queue cos-map [queue-id] interface configuration command.
This example shows how to map CoS values 6 and 7 to queue 1, 4 and 5 to queue 2, 2 and 3 to queue 3, 0 and 1 to queue 4.
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# wrr-queue cos-map 1 6 7
Switch(config-if)# wrr-queue cos-map 2 4 5
Switch(config-if)# wrr-queue cos-map 3 2 3
Switch(config-if)# wrr-queue cos-map 4 0 1
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/33070/showart_317531.html |
|