hi all i am using mikrotik 2.9 and i am limiting as add dst address = 10.0.1.5/32 interface = wan limit at 128000/128000 and i want to give more bandwidth at night times can anyone give me some idea
specify queue time to limit queue effect for specified period of time..
Asad
if i specified a time limit its working either day or night but i want to give different speed in day and nights, can you give me a code how to specify that
i want to give different speed in day and nights
create multiple queues for day n night..n schedule them accordingly..
Can You give me an example how to give multiple queues
system scheduler> print det
Flags: X - disabled
0 name=“schedule1” on-event=/queue simple set [find max-
limit=48000/48000] max-limit=56000/56000
start-date=jan/01/1970 start-time=13:13:00 interval=1d run-count=239
this script will change the max-limit of all the queues having max-limit 48000/48000 to 56000/56000 at 13:13 hrs every day. schedule another script like this to restore the settings..
cheers
Asad Raza
thanx i tried it but its not working
make a scheduled (eg. for day-time use) .. and then for the rest use ..
the queue order matters .. if you put the day-time queue before the normal queue the normal queue wont work if the day-time queue active (scheduled)… (same target address)
Here is my example ..
4 name="mine.daytime-intl" target-addresses=172.16.5.0/29 dst-address=0.0.0.0/0 interface=all parent=Traffic International
direction=both priority=8 queue=default-small/default-small
limit-at=8000/8000 max-limit=32000/32000 burst-limit=64000/64000
burst-threshold=32000/32000 burst-time=30s/30s
total-queue=default-small time=8h-22h,mon,tue,wed,thu,fri
5 name="mine.intl" target-addresses=172.16.5.0/29
dst-address=0.0.0.0/0 interface=all parent=Traffic International
direction=both priority=8 queue=default-small/default-small
limit-at=16000/16000 max-limit=192000/192000 total-queue=default-small
U need to create 2 Queue for the same target address and allote diff. speed.
Write a script and configure a scheduler for queue. The script will automatically enable and Disable the queue.
Example.
[admin@LAN Server] queue simple> pr
Flags: X - disabled, I - invalid, D - dynamic
0 name="day" target-addresses=10.10.10.2/32 dst-address=0.0.0.0/0
interface=LAN parent=none direction=both priority=8
queue=default-small/default-small limit-at=32000/64000
max-limit=64000/128000 total-queue=default-small
1 X name="night" target-addresses=10.10.10.2/32 dst-address=0.0.0.0/0
interface=LAN parent=none direction=both priority=8
queue=default-small/default-small limit-at=128000/256
max-limit=256000/512000 total-queue=default-small
[admin@LAN Server] queue simple>
Script
[admin@LAN Server] system script> pr
0 name="day" owner="admin"
policy=ftp,reboot,read,write,policy,test,winbox,password
last-started=feb/11/2007 09:14:03 run-count=2
source=/queue simple enable day; /queue simple disable night
1 name="night" owner="admin"
policy=ftp,reboot,read,write,policy,test,winbox,password run-count=0
source=/queue simple enable night; /queue simple disable day
[admin@LAN Server] system script>
Schedular for the Queue
[admin@LAN Server] system scheduler> pr
Flags: X - disabled
NAME ON-EVENT START-DATE START-TIME INTERVAL RUN-COUNT
0 DAY day feb/11/2007 06:00:00 1d 0
1 NIGHT night feb/11/2007 18:00:00 1d 0
[admin@LAN Server] system scheduler>
Try this , it will help u to solve your problem
ASHISH.
how to script with queuetree ?
Thanks
J
Instead of /Queue Simple, Use / Queue Tree…Simple
I have tried to setup http://wiki.mikrotik.com/wiki/Limit_Different_Bandwidth_In_Day_and_Night
and my configuration is to be applied to the CPE and not the AP, at present i also use pppoe to CPE so i need to limit if possible the ethernet side and not the pppoe(wlan) side below is the configration i tried day limit= 256k upload 3M download, night 128k upload 1M download,the script is working but I must have ommited something as it’s not limiting the bandwidth, using OS5.6
/queue simple
name=”Day” target-addresses=192.168.1.254 dst-address=0.0.0.0/0 interface=ether1 parent=none direction=both priority=8 queue=default-small/default-small limit-at=256k/3M max-limit=256k/3M total-queue=default-small
name=”Night” target-addresses=192.168.1.254 dst-address=0.0.0.0/0 interface=ether1 parent=none direction=both priority=8 queue=default-small/default-small limit-at=128k/1M max-limit=128k/1M total-queue=default-small
/system script
name=Day source=”/queue simple enable Day; /queue simple disable Night”
name=Night source=”/queue simple enable Night; /queue simple disable Day”