Community discussions

MikroTik App
 
ketut
just joined
Topic Author
Posts: 23
Joined: Fri Jan 27, 2006 2:15 pm

queue base on time

Wed Mar 08, 2006 4:10 am

hello mr/mrs
could anyone give an example to use queue base on time
an example:
ip: 192.168.11.2 from 08.00 am until 06.00 pm get bandwidth 32kbps until 64kbps......and from 06.00 pm until 08.00 am get bandwidth 64kbps until 128kbps eveyday
i use mikrotik 2.9.2

thank you verymuch for sugestion
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Re: queue base on time

Wed Mar 08, 2006 4:43 am

hello mr/mrs
could anyone give an example to use queue base on time
an example:
ip: 192.168.11.2 from 08.00 am until 06.00 pm get bandwidth 32kbps until 64kbps......and from 06.00 pm until 08.00 am get bandwidth 64kbps until 128kbps eveyday
i use mikrotik 2.9.2

thank you verymuch for sugestion
seach the forum, it has been posted before...
 
fivenetwork
newbie
Posts: 45
Joined: Thu Jul 08, 2004 4:39 am

Wed Mar 08, 2006 4:46 am

Can be done using Scripts and Scheduler.

First default queue

/queue simple add name=test dst-address=192.168.11.2/32 limit-at=32000/32000 max-limit=64000/64000

Next Scripts
/system script add name="Day" source=/queue simple set [/queue simple find name=test] dst-address=192.168.11.2/32 limit-at=32000/32000 max-limit=64000/64000

/system script add name="Night" source=/queue simple set [/queue simple find name=test] dst-address=192.168.11.2/32 limit-at=64000/64000 max-limit=128000/128000

Finally Scheduler
/system scheduler add name="SDay" on-event="Day" start-time=08:00:00 interval=1d

/system scheduler add name="SNight" on-event="Night" start-time=18:00:00 interval=1d

Think barring a few syntax errors the above will do the job. Mind you, i am doing this scripting from memory and not from a MT box!! Lemme know if it works and if it did'nt what you fixed to get it to work.
 
ketut
just joined
Topic Author
Posts: 23
Joined: Fri Jan 27, 2006 2:15 pm

Wed Mar 08, 2006 7:02 am

thank you very much to mr.cibernet and mr.fivenetwork for the answer
i will try that, if done i will post to this forum

thanks before

Who is online

Users browsing this forum: thahemp and 13 guests