User Manual
SWP1(config)#class-map class1
SWP1(config-cmap)#match access-group 1
SWP1(config-cmap)#exit
[Policy settings]
SWP1(config)#policy-map policy1
SWP1(config-pmap)#class class1
SWP1(config-pmap-c)#set ip-precedence 5
SWP1(config-pmap-c)#exit
SWP1(config-pmap)#exit
SWP1(config)#interface ge1
SWP1(config-if)#service-policy input policy1
13.2.32 Set pre-marking (DSCP)
[Syntax]
set ip-dscp value
no set dscp
[Parameter]
value : <0 - 63>
DSCP value specified by pre-marking
[Input mode]
policy map class mode
[Description]
Changes the DSCP value of the classified traffic class to the specified DSCP 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 DSCP 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.
Up to four values may be used for pre-marking/remarking to a DSCP value not recommended in the RFC. The following table
shows the DSCP values that are recommended in the RFC.
PHB DSCP value RFC
default 0 2474
Class Selector 0, 8, 16, 24, 32, 40, 48, 56 2474
Assured Forwarding 12, 14, 18, 20, 22, 26, 36, 38 2597
Expedited Forwarding (EF) 46 2598
[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 DSCP value "10."
[Traffic class definition]
SWP1(config)#ip-access-list 1 permit 10.1.0.0 0.0.255.255
SWP1(config)#class-map class1
SWP1(config-cmap)#match access-group 1
SWP1(config-cmap)#exit
[Policy settings]
SWP1(config)#policy-map policy1
SWP1(config-pmap)#class class1
SWP1(config-pmap-c)#set ip-dscp 10
SWP1(config-pmap-c)#exit
SWP1(config-pmap)#exit
SWP1(config)#interface ge1
SWP1(config-if)#service-policy input policy1
Command Reference | Traffic control | 201