DGS-6604
m
police
CLI Reference Guide
488
Default
None
Command Mode
Policy-map class configuration
Usage Guideline
Use the police command to drop the packet or mark the packet with different
quality of service (QoS) values based on conformance to the service agreement.
As a packet arrives at a port, the packet will be initialized with a color. This color
will be used in control of congestion.
If the policer is operated in color blind mode, the packet is re-colored and the
actions are taken based on the policer metering result.
If the policer is operated in color aware mode, the packet is re-colored and the
actions are taken based on the policer metering result and the initial color of the
packet.
The actions configured by the set command for the traffic class will be applied to
the conforming packet. They will not be applied to the exceeding packet and the
violating packets.
Note: Either one of police command and police cir command can be activated for
the refereed traffic class. The latter command will overwrite the previous policer
command setting within the same traffic class.
The following example show the precedence between
police
command and
police cir
commands: create a policy-map, police-map1 and have a traffic class,
class-movie with single rate police (police command).
ACTION
Action to take on packets. Specifies one of the following keywords:
"drop-Drops the packet.
"set-dscp-transmit value-Sets the IP differentiated services code point (DSCP)
value and transmits the packet with the new IP DSCP value.
"transmit-Transmits the packet. The packet is not altered.
Syntax Description
Switch(config)# policy-map police-map1
Switch(config-pmap)# class class-movie
Switch(config-pmap-c)# police 8000 1000 exceed-action drop
Switch(config-pmap-c)#exit
Switch(config-pmap)# exit
Switch(config)#