93
4.7.5
CLI Commands of the Traffic Prioritization
Command Lines of the Traffic Prioritization configuration
Feature
Command Line
QoS Setting
Queue Scheduling
–
Strict Priority
Switch(config)# qos queue-sched
sp Strict Priority
wrr Weighted Round Robin
Switch(config)# qos queue-sched sp
The queue scheduling scheme is setting to Strict Priority.
Queue Scheduli
–g -
WRR
Switch(config)# qos queue-sched wrr
<1-10> Weights for COS queue 0 (queue_id 0)
Switch(config)# qos queue-sched wrr 10
<1-10> Weights for COS queue 1 (queue_id 1)
………..
Switch(config)# qos queue-sched wrr 1 2 3 4 5 6 7 8
The queue scheduling scheme is setting to Weighted Round
Robin.
Assign the ratio for the 8 classes of service.
Port Setting
– CoS
(Default Port Priority)
Switch(config)# interface
fa1
Switch(config-if)# qos priority
<0-7> Assign a priority queue
Switch(config-if)# qos priority 3
The priority queue is set 3 ok.
Note: When change the port setting, you should Select the
specific port first. Ex: fa1 means fast Ethernet port 1.
QoS Trust Mode
Switch(config)# qos trust-mode
cos CoS
dscp DSCP/TOS
Switch(config)# qos trust-mode dscp
Set QoS trust mode dscp ok
Switch# show trust-mode
QoS Trust Mode: DSCP/TOS code point
Display - Queue
Scheduling
Switch# show qos queue-sched
QoS queue scheduling scheme : Weighted Round Robin
COS queue 0 = 1
COS queue 1 = 2
COS queue 2 = 3
COS queue 3 = 4
COS queue 4 = 5
COS queue 5 = 6
COS queue 6 = 7
COS queue 7 = 8
Display
– Port Priority
Setting (Port Default
Priority)
Switch# show qos port-priority
Port Default Priority :
Port Priority Queue
-----+----
1 7
2 0
3 0
4 0
………..