[Example]
Clear the metering totals for LAN port #1.
SWR2311P#clear qos metering-counter port1.1
9.2.37 Set egress queue (CoS-Queue)
[Syntax]
set
cos-queue
value
no
set
cos-queue
[Parameter]
value
:
<0 - 7>
CoS value corresponding to egress queue
[Input mode]
policy map class mode
[Description]
Assigns an egress queue to the classified traffic class.
Use the CoS value to specify the egress queue; the egress queue that is assigned is based on the "CoS-egress queue ID
conversion table."
If this is executed with the "no" syntax, the specification of egress queue based on traffic class is removed.
[Note]
In order to execute this command, QoS must be enabled.
Egress queue specification cannot be used in conjunction with pre-marking.
Egress queue specification based on CoS is only for CoS trust mode. If a policy map contains even one class map that includes
this command, that policy map cannot be applied to a port that uses DSCP trust mode.
[Example]
Make the following settings for received frames of LAN port #1
• Permit traffic from the 10.1.0.0 network
• Change the classified traffic class to egress queue 3 (CoS:3)
[Traffic class definition]
SWR2311P(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#match access-list 1
SWR2311P(config-cmap)#exit
[Policy settings]
SWR2311P(config)#policy-map policy1
SWR2311P(config-pmap)#class class1
SWR2311P(config-pmap-c)#set cos-queue 3
SWR2311P(config-pmap-c)#exit
SWR2311P(config-pmap)#exit
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#service-policy input policy1
9.2.38 Set egress queue (DSCP-Queue)
[Syntax]
set
ip-dscp-queue
value
no
set
ip-dscp-queue
[Parameter]
value
:
<0 - 63>
DSCP value corresponding to egress queue
[Input mode]
policy map class mode
[Description]
Assigns an egress queue to the classified traffic class.
252
| Command Reference | Traffic control