CANOGA PERKINS CanogaOS Configuration Guide User Manual
Page 276

CanogaOS Configuration Guide
Proprietary & Confidential Canoga Perkins Metro Ethernet Switches
Page 276 of 350
pbs = PBS - peak burst size (bytes)
drop-color = drop color config
use-l3-length = Use l3 length for policing
9. exit.
10. exit.
11. interface IFNAME to specify the interface to match to the policy map.
IFNAME = name of interface
12. service-policy input|output NAME to apply a policy map to the input or output
of the specified interface.
NAME = policy-map name to apply the specified policy-map to the interface.
Note: There can be only one policy map per interface per direction.
Note: The no policy-map command deletes an existing policy-map. The no set priority color
command removes a specified priority color value. The no police command removes an existing
policer. The no trust command removes trust policy. The no service-policy input|output
command removes a policy map from interface.
The following example shows creating a policy map, and attaching it to an ingress interface. In
this example, the IP ACL allows traffic from network 10.1.0.0. If the matched traffic exceeds a
48000-kbps average traffic rate, it is dropped.
DUT(config)# ip access-list ip-acl
DUT(config-ip-acl)# permit any 10.1.0.0 0.0.255.255 any
DUT(config-ip-acl)# exit
DUT(config)# class-map cmap1
DUT(config-cmap)# match access-group ip-acl
DUT(config-cmap)# exit
DUT(config)# policy-map pmap1
DUT(config-pmap)# class cmap1
DUT(config-pmap-c)# policer color-blind cir 48000 cbs 10000 ebs 20000 drop-color
red
DUT(config-pmap-c)# exit
DUT(config-pmap)# exit
DUT(config)# interface eth-0-1
DUT(config-if)# service-policy input pmap1
Create Aggregate Policer
The following shows creating an aggregate policer to classify, police, and mark traffic.
1. configure terminal.
2. qos aggregate-policer NAME color-blind|color-aware cir <1-1000000> cbs
<0-4000000> ebs <0-4000000>| pir <1-1000000> pbs <0-4000000> drop-color red|yellow