Bandwidth policing by VLAN

I have a number of customers sharing an internet connection and I want to rate limit them all so they don't use up all of the pipe at once.
Each customer is assigned a VLAN.

Need some help with the Cisco Syntax;
How can I create a QoS policing policy to rate limit them?
Whenever I try to apply a police it doesn't stick in the configuration.


class-map match any RATELIMIT

policy-map RATELIMIT
  class RATELIMIT
    police cir 25600000 bc 312500 be 312500 conform-action transmit exceed-action drop violate-action drop

int vlan 20
  service-policy input RATELIMIT
  service-policy output RATELIMIT

*That last bit doesn't stick in the config, it takes the command but then doesn't apply to the running config?
LVL 1
PerimeterITAsked:
Who is Participating?
 
PerimeterITConnect With a Mentor Author Commented:
Turns out this switch doesn't support applying the policy to VLANs, have to apply it to a physical interface
0
 
kevinhsiehCommented:
Try removing the input policy and just apply the output policy, and see if that makes a difference.

Try using two different policy names for the input and output policy.
0
 
PerimeterITAuthor Commented:
nope same thing, I enter the policy command and it accepts it but it doesn't list the command in the running config.
0
 
PerimeterITAuthor Commented:
Found the solution myself, no help from community
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.