Community discussions

MikroTik App
 
ctech4285
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sat Aug 15, 2009 8:49 pm

what is the correct syntax for rate-limit in user-manager?

Wed Oct 21, 2009 12:22 am

i am trying to set rate-limit=128k upload 256k download, 256 upload burst and 512k download burst.
so set 6 rate-limit=128k/256k/256k/512k
but i get invalid rate-limit

from the manual:

Rate limitation in form of rx-rate[/tx-rate] [rx-burst-rate[/tx-burst-rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time] [priority] [rx-rate-min[/tx-rate-min]]]] from the point of view of the router

any idea what i am doing wrong?
 
User avatar
bellis
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Nov 05, 2008 1:15 am
Location: Woodland, WA
Contact:

Re: what is the correct syntax for rate-limit in user-manager?

Wed Oct 21, 2009 12:54 am

try setting using bits per second (i.e. 256kbs would be entered as 256000). i dont think the syntax will accept it any other way
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: what is the correct syntax for rate-limit in user-manager?

Wed Oct 21, 2009 12:58 am

There's no slash between the rate limit and the burst, there's a space - at least for the RADIUS attribute itself. So if User Manager supports this at all, try this:
set 6 rate-limit="128k/256k 256k/512k"
The CLI does accept that as far as syntax goes. I have no idea if it will be evaluated right as I don't really user User Manager.
 
ctech4285
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sat Aug 15, 2009 8:49 pm

Re: what is the correct syntax for rate-limit in user-manager?

Wed Oct 21, 2009 2:28 am

sweet that worked, thank you!!!