Administrator Guide

Layer 2 Switching Commands 717
Syntax
police-simple {
datarate
burstsize
conform-action {drop | set-prectransmit
cos
| set-dscp-transmit
dscpval
| transmit} [violate-action {drop | set-cos-
transmit
cos
| set-prec-transmit
cos
| set-dscp-transmit
dscpval
|
transmit}]}
datarate
— Data rate in kilobits per second (kbps). (Range:
1–4294967295)
burstsize
— Burst size in Kbytes (Range: 1–128)
conform action
— Indicates what happens when the packet is conforming
to the policing rule: it could be dropped, it could have its COS modified, it
could have its IP precedence modified, or it could have its DSCP
modified. The same actions are available for packets that violate the
policing rule.
cos
— Class of Service value. (Range: 0–7)
dscpval — DSCP value. (Range: 0–63 or a keyword from this list:
af11
,
af12
,
af13
,
af21
,
af22
,
af23
,
af31
,
af32
,
af33
,
af41
,
af42
,
af43
,
be
,
cs0
,
cs1
,
cs2
,
cs3
,
cs4
,
cs5
,
cs6
,
cs7
,
ef
)
Default Configuration
This command has no default configuration.
Command Mode
Policy-Class-Map Configuration mode
User Guidelines
The simple form of the police command uses a single data rate and burst size,
resulting in two outcomes: conform and violate. Conforming packets are
colored green and non-conforming packets are colored red for use by the
WRED mechanism. Only one style of police command (simple, single-rate or
two-rate) is allowed for a given class instance in a particular policy. The
conform-color
command can be used to pre-color packets prior to policing.
Packets pre-colored red are not re-colored by the policer.
2CSNXXX_SWUM204.book Page 717 Monday, January 25, 2016 1:25 PM