Community discussions

MikroTik App
 
ivanperino
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Sat Jan 20, 2007 4:34 am

How to QUEUE user by user.

Thu Aug 23, 2007 11:20 pm

I need to limit datarate to every user in a LAN. They are about 50 or 60 users

The problem consist. If one host start downloading e-mail (for example) It takes the entire bandwidth up to finish. The router interface of this LAN has 512Kbps asigned on queue.

Is there any way to do it without adding one by one to the queue list¿? all of them use Fixed IP.
THANKS!
 
rzirzi
Member
Member
Posts: 393
Joined: Mon Oct 09, 2006 2:33 pm

Re: How to QUEUE user by user.

Thu Aug 23, 2007 11:43 pm

Is there any way to do it without adding one by one to the queue list¿? all of them use Fixed IP.
THANKS!
Just use and run script like that:
:for i from 1 to 50 do={ /queue simple add target-addresses=(192.168.1. $i . ) interface=ether1 max-limit=512000/512000 }
of course change parameters yun need, specially the addresses and interface
 
ivanperino
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Sat Jan 20, 2007 4:34 am

Re: How to QUEUE user by user.

Fri Aug 24, 2007 1:24 am

It was amazing!! You saved to me a lot of time!!! tank you.
 
User avatar
tgrand
Long time Member
Long time Member
Posts: 667
Joined: Mon Aug 21, 2006 2:57 am
Location: Winnipeg, Manitoba, Canada

Re: How to QUEUE user by user.

Fri Aug 24, 2007 7:24 am

If you use the user-manager package and set some of the rate settings, the queues will be created for you automatically.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: How to QUEUE user by user.

Fri Aug 24, 2007 8:58 am

Another way is PCQ queue to save the time with the configuration and most important router resources.
As few queues will substitute 50, any queue you have,
http://wiki.mikrotik.com/wiki/PCQ_Examples

Who is online

Users browsing this forum: erlinden, jagga, sindy and 54 guests