Community discussions

MikroTik App
 
medube
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Feb 15, 2005 2:50 pm

Attributes for use with Freeradius

Mon Feb 19, 2007 1:54 pm

Hi all,

At present Im running Mikrotik with Freeradius and MySQL. For Bandwidth shaping Im already using certain attributes in Freeradius, but I would like to start doing burstable BW to clients.

As of now my attributes for examples of 64k upload and 256k download are:

Ascend-Data-Rate := 64000
Ascend-Xmit-Rate := 256000

In the case where I would like to assign to a client a fixed upload of 64k burstable to 128k and download of 256k burstable to 512k, what will be the right attributes to use?

All suggestions will be highly appreciated.
 
User avatar
bjohns
Member Candidate
Member Candidate
Posts: 272
Joined: Sat May 29, 2004 4:11 am
Location: Sippy Downs, Australia
Contact:

Mon Feb 19, 2007 2:00 pm

Rate-Limit += 128k/512k 256k/512K 64K/128K 60/60 5

That will do what you ask, bursting for 60 seconds on each, and will assign a priority of 5 to each queue.
 
User avatar
grzesjan
Member Candidate
Member Candidate
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Mon Feb 19, 2007 11:08 pm

Rate-Limit += 128k/512k 256k/512K 64K/128K 60/60 5

That will do what you ask, bursting for 60 seconds on each, and will assign a priority of 5 to each queue.
You don't have to give all parameters, you can just use:
Rate-Limit = 512k/512k

Gregor
 
medube
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 86
Joined: Tue Feb 15, 2005 2:50 pm

Tue Feb 20, 2007 12:16 am

Guys, I tried all the examples above and no one seemed to work. Also you did not specify how to add rx different from tx
 
User avatar
grzesjan
Member Candidate
Member Candidate
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Tue Feb 20, 2007 12:44 am

Guys, I tried all the examples above and no one seemed to work. Also you did not specify how to add rx different from tx
For me it works. Read the Mikrotik docs - "Rate-Limit" format is good described there.

Gregor.
Gregor
 
User avatar
mneumark
Member
Member
Posts: 375
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Tue Feb 20, 2007 7:58 am

grzesjan,

You need to assign the speed in freeradius to the radgroupreply table. Here is a example:

id GroupName Attribute op Value prio
10 512K Rate-Limit += 512k/384k 8

Then under usergroup table, assign the username to a group. Example:

id UserName GroupName
1 TEST 512K

Then when freeradius is queried by the MT pppoe server it will lookup the user and assign a rate-limit to those users.
 
User avatar
mneumark
Member
Member
Posts: 375
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Tue Feb 20, 2007 8:00 am

 
User avatar
grzesjan
Member Candidate
Member Candidate
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Tue Feb 20, 2007 11:56 pm

grzesjan,
You need to assign the speed in freeradius to the radgroupreply table.
Me? Why me? :)

I have freeradius working but I'm not using such table :)

Regards,
Gregor
 
User avatar
mneumark
Member
Member
Posts: 375
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Wed Feb 21, 2007 12:50 am

Sorry those messages were examples for medube.

Who is online

Users browsing this forum: Baidu [Spider], lukastribus, sindy and 129 guests