I want to police customers traffic into 20mbps.
Create policy map:
1 2 3 policy-map shape-20 class class-default police 20M 400000 exceed-action drop
Assign policy map to interface:
1 2 interface FastEthernet1/0/2 service-policy input shape-20
Unfortunately, policy-map containing police action cannot be attached to interface in egress direction. So here is how i limit it to 20mbps:
1 2 3 interface FastEthernet1/0/2 srr-queue bandwidth limit 20 srr-queue bandwidth shape 0 0 0 0