Rate limiting VLANs

Hi,

I have been looking at how I can rate limit VLANs, but all the examples I’ve come across, rates limits on IP, which doesn’t really help, as that would be an administrative nightmare.

I have about 60 VLANs, and I want to have a template of rules, that I can apply on the VLAN.

eg:

CLNT_ACCESS_10
burst-limit 100mbit
burst-time 5 minutes
max-limit 50mbit
burst-threshold 20mbit

CLNT_ACCESS_11
burst-limit 100mbit
burst-time 1 minutes
max-limit 50mbit
burst-threshold 20mbit

Any anyone point me in the right direction?

Add Mangle rule, which marks all traffic that is entering/exiting over VLAN interface.
Add queue based on the packet mark, which will set limit for incoming/outgoing traffic over VLAN.

Thanks sergejs, I’ll see if I can get any of that to work.