Hi, I'm trying to limit the total bandwidth on a port (essentially bandwidth limiting a customer) for both input and output. I've read various articles on how to do this correctly, though I don't seem to be able to get something that works effectively.
Thanks.
Here's parts of a relevant configuration that I think "should" work but doesn't appear to:
mls qos map cos-dscp 0 8 16 24 32 46 48 56 mls qos min-reserve 5 170 mls qos min-reserve 6 85 mls qos min-reserve 7 51 mls qos min-reserve 8 34 mls qos ip routing
class-map match-all all-out match ip dscp default class-map match-all all-in match access-group 1 ! policy-map limit-out-5mb class all-out police 5242500 327656 exceed-action drop policy-map limit-in-5mb class all-in police 5242500 327656 exceed-action drop ! interface FastEthernet0/2 switchport trunk encapsulation dot1q switchport trunk allowed vlan 87 switchport mode trunk speed 100 duplex full auto qos voip trust wrr-queue bandwidth 10 20 70 1 wrr-queue min-reserve 1 5 wrr-queue min-reserve 2 6 wrr-queue min-reserve 3 7 wrr-queue min-reserve 4 8 wrr-queue cos-map 1 0 1 wrr-queue cos-map 2 2 4 wrr-queue cos-map 3 3 6 7 wrr-queue cos-map 4 5 priority-queue out service-policy input limit-in-5mb service-policy output limit-out-5mb !
access-list 1 permit any