Administrator Guide

Layer 2 Switching Commands 718
Example
The following example configures a single rate ingress meter with packets
received at a rate below 1000 Kbps and 4096 byte burst size are transmitted
and packets above that rate are dropped. The transmitted packets are colored
green should the operator desire to configure a WRED drop policy.
console(config-policy-classmap)#police-simple 1000 64 conform-action
transmit violate-action drop
police-single-rate
Use the police-single-rate command to implement a single-rate Three Color
Market (srTCM) per RFC 2697.
NOTE: This command is not available on the N1500 Series switches.
Syntax
police-single-rate
datarate burstsize excess-burstsize
conform-action
action
exceed-action
action
violate-action
action
datarate
—Data rate in kilobits per second (Kbps). (Range 1-4294967295)
burstsize
—Burst size in kilobits per seconds (Kbps). (Range 1-128)
excess-burstsize
—Excess burst size in kilobits per seconds (Kbps). (Range
1-128)
action
—The action to take according to the color. Select one:
drop
: Drop the packet.
set-prec-transmit
ip-prec
: Remark the IP precedence in the packet to
ip-prec
and transmit. (Range 0-7)
set-dscp-transmit
dscp-val
: Remark the DSCP in the packet to
dscp-
val
and transmit. (Range 0-63)
set-cos-transmit
802.1p-priority
: Remark the 802.1p priority in the
packet to
802.1p-priority
and transmit. (Range 0-7)
transmit
: Transmit the packet unmodified.
Default Configuration
There no default configuration for this command.
2CSNXXX_SWUM204.book Page 718 Monday, January 25, 2016 1:25 PM