Cisco – Traffic policing on 3750-x Lan base

ciscocisco-catalystpolicing

I am trying to split the bandwidth between 2 parties using a C3750-X. It has the Lan base licence and is running on the 12.2 train.
The following is my config on an otherwise blank switch:

ip access-list extended ACL_20M  
permit ip any any  
!  
class-map match-all CLASS_20M  
  match access-group name ACL_20M  
!  
policy-map POLICY_20M  
  class CLASS_20M  
    police 20000000 100000 exceed-action drop  
!  
interface GigabitEthernet1/0/1  
 service-policy input POLICY_20M  
!  
ip access-list extended ACL_180M  
 permit ip any any  
!  
class-map match-all CLASS_180M  
  match access-group name ACL_180M  
!  
policy-map POLICY_180M  
  class CLASS_180M  
    police 180000000 100000 exceed-action drop  
!  
interface GigabitEthernet1/0/13  
 service-policy input POLICY_180M  

I'm testing with iperf but don't see any effect when applying

service-policy input POLICY_whichever

to an interface. Any assistance on why it doesn't work would be greatly appreciated.

Best Answer

You're configuring it wrong. In order to get policing working on these switches you need to configure the following (I've taken this from a working switch of mine)

mls qos
!
interface GigabitEthernet1/0/2
 switchport access vlan 500
 switchport mode access
 mls qos vlan-based
!
class-map match-all CUSTOMER_2
 match input-interface  GigabitEthernet1/0/2
!
policy-map VLAN500_POLICE
 class CUSTOMER_2
  police 10000000 1000000 exceed-action drop
!
policy-map VLAN500_PARENT
 class class-default
  set dscp default
  service-policy VLAN500_POLICE
!
interface Vlan500
 ip address 192.168.203.1 255.255.255.248
 ip ospf 1 area 0
 service-policy input VLAN500_PARENT

This is the only way I've ever got policing to work on a 3750