DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
518
Switch# configure terminal
Switch(config)# policy-map cust2-classes
Switch(config-pmap)# class gold
Switch(config-pmap-c)# police 1600 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# class silver
Switch(config-pmap-c)# police 4000 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# class bronze
Switch(config-pmap-c)# police 16000 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface eth4/0/1
Switch(config-if)# service-policy input cust2-classes
Switch(config-if)#
56-21
set
This command is used to configure the new precedence field, DSCP field, and CoS field of the
outgoing packet. The user can also specify the CoS queue for the packet.
set {[ip] precedence PRECEDENCE | [ip] dscp DSCP | cos COS | cos-queue COS-QUEUE}
no set {[ip] precedence PRECEDENCE | [ip] dscp DSCP | cos COS | cos-queue COS-QUEUE}
Parameters
precedence PRECEDENCE
Specifies a new precedence for the packet. The range is from 0 to
7. If the optional keyword
ip
is specified, IPv4 precedence will be
marked. If not specified, both IPv4 and IPv6 precedence will be
marked. For IPv6 packets, the precedence is the most three
significant bits of traffic class of IPv6 header. Setting the
precedence will not affect the CoS queue selection.
dscp DSCP
Specifies a new DSCP for the packet. The range is from 0 to 63. If
the optional keyword
ip
is specified, IPv4 DSCP will be marked. If
not specified, both IPv4 and IPv6 DSCP will be marked. Setting
DSCP will not affect the CoS queue selection.
cos COS
Specifies to assign a new CoS value to the packet. The range is
from 0 to 7. Setting CoS will not affect the CoS queue selection.
cos-queue COS-QUEUE
Specifies to assign the CoS queue to the packets. This overwrites
the original CoS queue selection.
Default
None.
Command Mode
Policy-map Class Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Use this command to set the DSCP field, CoS field, or precedence field of the matched packet to a
new value. Use the
set cos-queue
command to directly assign the CoS queue to the matched
packets.
Configure multiple set commands for a class if they are not conflicting.
Содержание DGS-510
Страница 1: ...1 ...
Страница 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Страница 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Страница 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Страница 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...