[Input mode]
interface mode
[Description]
Applies the policy map to the corresponding LAN/SFP port.
If this is executed with the "no" syntax, the policy map is deleted from the LAN/SFP port.
[Note]
In order to execute this command, QoS must be enabled.
If a policy map has already been applied to the LAN/SFP port, an error occurs.
For a class map that is associated with a policy map, an error occurs if there is not even one setting that corresponds to the trust
mode of the LAN/SFP port. Of the class map settings, the following commands are limited in their applicability by the trust
mode.
Trust mode
Command
Restrictions
CoS
set ip-dscp-queue
Cannot be used
DSCP
set cos-queue
Cannot be used
Port Priority
set cos
Cannot be used
set ip-precedence
set ip-dscp
set cos-queue
set ip-dscp-queue
police, remark-map
Cannot use a combination for which
remarking is enabled (*1)
*1) A combination for which remarking is enabled refers to when the yellow-action or red-action of the
police
command is set
to "remark" and the
remark-map
of the corresponding color is specified.
[Example]
Apply policy map "policy1" to LAN port #1.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#service-policy input policy1
Remove policy map "policy1" from LAN port #1.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#no service-policy input policy1
9.2.23 Set pre-marking (CoS)
[Syntax]
set
cos
value
no
set
cos
[Parameter]
value
:
<0 - 7>
CoS value set by pre-marking
[Input mode]
policy map class mode
[Description]
Changes the CoS value of the classified traffic class to the specified CoS value. In addition, reassign the egress queue according
to the egress queue ID table that corresponds to the trust mode.
If this is executed with the "no" syntax, pre-marking processing of the CoS value corresponding to the traffic class is removed.
[Note]
In order to execute this command, QoS must be enabled.
Pre-marking cannot be used in conjunction with the set egress queue function.
240
| Command Reference | Traffic control