I've done bandwidth management with policy-maps. I managed to get it working when I was testing the switches. Now the switches are going to production use and the policys are not working! What can be wrong?
Below is the configuration. I've enabled qos with "mls qos" command on config mode.
The class map should match dscp 0 which means all traffic in this case.
Class Map match-all rate-limit (id 1)
Match ip dscp default
This should police the traffic to 2mb
Policy Map 2mb
Class rate-limit
police 2048000 192000 exceed-action drop
Here is the interface configuration:
interface GigabitEthernet0/2
description xxx
switchport access vlan xxx
switchport mode access
switchport protected
service-policy input 2mb
speed 100
no cdp enable
spanning-tree portfast
spanning-tree bpdufilter enable
end
Additional information:
sh mls qos
QoS is enabled
QoS ip packet dscp rewrite is enabled