Cisco Cisco SF302-08PP 8-port 10 100 PoE+ Managed Switch Referencia técnica
Quality of Service (QoS) Commands
680
78-20269-01 Command Line Interface Reference Guide
43
Default Usage
N/A
Command Mode
Policy-map Class Configuration mode
User Guidelines
This command only exists in when the device is in Layer 2 mode.
Policing uses a token bucket algorithm. CIR represents the speed with which the
token is added to the bucket. CBS represents the depth of the bucket.
token is added to the bucket. CBS represents the depth of the bucket.
Example
The following example defines a policer for classified traffic. When the traffic rate
exceeds 124,000 kbps and the normal burst size exceeds 9600 bytes, the packet
is dropped. The class is called class1 and is in a policy map called policy1.
exceeds 124,000 kbps and the normal burst size exceeds 9600 bytes, the packet
is dropped. The class is called class1 and is in a policy map called policy1.
switchxxxxxx(config)#
policy-map
policy1
switchxxxxxx(config-pmap)#
class
class1
switchxxxxxx(config-pmap-c)#
police
124000 9600
exceed-action drop
43.13 service-policy
Use the service-policy Interface Configuration (Ethernet, Port-channel) mode
command to bind a policy map to a port/port-channel. Use the no form of this
command to detach a policy map from an interface.
command to bind a policy map to a port/port-channel. Use the no form of this
command to detach a policy map from an interface.
This command is only available in QoS advanced mode.
Syntax
service-policy input
policy-map-name
default-action [
permit-any
|
deny-any
]
no service-policy input
Parameters
•
policy-map-name—Specifies the policy map name to apply to the input
interface. (Length: 1–32 characters)
interface. (Length: 1–32 characters)