device# configure terminal
device(config)# class cp-cmap
device(config-classmap)# match access-group racl-1
device(config-classmap)# exit
device(config)# policy-map cp-pmap
device(config-policymap)#class cp-cmap
device(config-policymap-class)# police cir 121212
device(config-policymap-class)# exit device(config-policymap)# exit
device(config)# control-plane
device(config-control-plane)# service-policy in cp-pmap
device(config-control-plane)# end
device# show policy-map control-plane
Ingress Direction :
Policy-Map cp-pmap
Class cp-cmap
matches 0 packets 0 bytes
Police cir 121212
Stats:
Operational cir:121212 cbs:0 eir:0 ebs:0
Conform Byte:0 Exceed Byte:0 Violate Byte:0
The following example shows the steps in the previous configuration.
device# configure terminal device(config)# class cp-cmap device(config-classmap)# match access-group racl-1 device(config-classmap)# exit device(config)# policy-map cp-pmap device(config-policymap)# class cp-cmap device(config-policymap-class)# police cir 121212 device(config-policymap-class)# exit device(config-policymap)# exit device(config)# control-plane device(config-control-plane)# service-policy in cp-pmap device(config-control-plane)# end device# show policy-map control-plane