User Manual

Table Of Contents
[Example]
Apply policy map "policy1" to LAN port #1.
SWX3220(config)#interface port1.1
SWX3220(config-if)#service-policy input policy1
Remove policy map "policy1" from LAN port #1.
SWX3220(config)#interface port1.1
SWX3220(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.
[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 the CoS value "2"
[Traffic class definition]
SWX3220(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWX3220(config)#class-map class1
SWX3220(config-cmap)#match access-list 1
SWX3220(config-cmap)#exit
[Policy settings]
SWX3220(config)#policy-map policy1
SWX3220(config-pmap)#class class1
SWX3220(config-pmap-c)#set cos 2
SWX3220(config-pmap-c)#exit
SWX3220(config-pmap)#exit
SWX3220(config)#interface port1.1
SWX3220(config-if)#service-policy input policy1
9.2.24 Set pre-marking (TOS precedence)
[Syntax]
set ip-precedence value
no set ip-precedence
[Parameter]
value : <0 - 7>
TOS precedence to specify by pre-marking
[Input mode]
policy map class mode
422 | Command Reference | Traffic control