Switch(config)# access-list 1 permit 192.5.255.0 0.0.0.255,Following is the configuration of the class map
Switch(config)# class-map class1,Switch(config-cmap)# match access-group 1 (this is the access list number)
Switch(config-cmap)# end,Switch#
Following is the configuration of the policy map
Switch(config)# policy-map flow1t,Switch(config-pmap)# class class1
Switch(config-pmap-c)# police 3000000 8000 exceed-action drop,Switch(config-pmap-c)# exit
Switch(config-pmap)# exit,Switch(config)# interface gigabitethernet2/0/1
Switch(config-if)# service-policy input flow1t.
This is an example configuration rate limiting on the gigabitethernet2/0/1 to 3 Meg for example and will drop the traffic exceeding this limit. The figure 8000 determines the burst size.