3com 3CRUS2475 Manuale Utente

Pagina di 522
service-policy
127
User Guidelines
Policing uses a token bucket algorithm. CIR represents the speed with 
which the token is removed from 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 bps or the normal burst size exceeds 96000 
bps, the packet is dropped. The class is called ‘class1’ and is in a policy 
map called ‘policy1’.
service-policy
The service-policy Interface Configuration (Ethernet, port-Channel) 
mode command applies a policy map to the input of a particular 
interface. To detach a policy map from an interface, use the no form of 
this command. 
Syntax
service-policy {input policy-map-name}
no service-policy {input}
Parameters
policy-map-name — Specifies the name of the policy map to be 
applied to the input interface.
Default Configuration
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, port-Channel) mode
User Guidelines
Only one policy map per interface per direction is supported.
Console (config)# policy-map policy1
Console (config-pmap)# class class1
Console (config-pmap-c)# police 124000 9600 exceed-action drop