Kita akan mencoba untuk membuat dua setingan upload dan download dalam waktu 24 jam dengan mikrotik.
Bagaimana caranya kita menjalankan 2 setingan yang berbeda dalam satu waktu.ok.... langsung ke TKP.
Disini saya menerapkan simple queue sebagai contoh yang nanti silahkan anda kembangkan sendiri.
code:
/system script
add name=limit15 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client15 max-limit=0/384000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit14 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client14 max-limit=0/384000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit13 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client13 max-limit=0/384000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop13 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client13 max-limit=0/448000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit12 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client12 max-limit=0/384000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop12 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client12 max-limit=0/448000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit11 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client11 max-limit=0/384000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop11 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client11 max-limit=0/448000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit10 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client10 max-limit=0/384000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop10 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client10 max-limit=0/448000 burst-limit=0/1M burst-thres\
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit9 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client9 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop9 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client9 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit8 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client8 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop8 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client8 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit7 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client7 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop7 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client7 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit6 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client6 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop6 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client6 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit5 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client5 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop5 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client5 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit4 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client4 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop4 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client4 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit3 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client3 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop3 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client3 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit2 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client2 max-limit=0/384000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop2 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
/queue simple set client2 max-limit=0/448000 burst-limit=0/1M burst-thresh\
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit16 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
/queue simple set client16 max-limit=0/384000 burst-limit=0/1M bu
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop14 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
/queue simple set client14 max-limit=0/448000 burst-limit=0/1M bu
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop15 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
/queue simple set client15 max-limit=0/448000 burst-limit=0/1M bu
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop16 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
/queue simple set client16 max-limit=0/448000 burst-limit=0/1M bu
hold=0/192k burst-time=0s/20s limit-at=0/128k"
add name=limit1 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
/queue simple set client1 max-limit=0/384000 burst-limit=0/1M bur
old=0/192k burst-time=0s/20s limit-at=0/128k"
add name=stop1 policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
/queue simple set client1 max-limit=0/448000 burst-limit=0/1M bur
old=0/192k burst-time=0s/20s limit-at=0/128k"
Copy kan code diatas diterminal winbox anda, lalu periksa di >system>script.code diatas sudah saya coba dan berjalan dengan baik mikrotik RB750 versi 3.30.
Keterangan code diatas disimple queue tiap client :
-siang jam 05.30 upload loss/download 320k
-malam jam 22.30 upload loss/download 448k
-set clientxxx : sesuai kan dengan nama simple queue anda
Tapi untuk menjalan fungsi code diatas agar berjalan sesuai dengan waktu yang kita inginkan, kita memerlukan rencana atau jadwal (schedule).sekarang kita akan membuat schedule dari code diatas.
code:
/system scheduler
add comment="" disabled=no interval=1d name=l-16 on-event=limit16 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-16 on-event=stop16 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-15 on-event=limit15 policy=\
read,write,policy,test,sniff start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-15 on-event=stop15 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-14 on-event=limit14 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-14 on-event=stop14 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-13 on-event=limit13 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-13 on-event=stop13 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-12 on-event=limit12 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-12 on-event=stop12 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-11 on-event=limit11 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-11 on-event=stop11 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-10 on-event=limit10 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-10 on-event=stop10 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-9 on-event=limit9 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-9 on-event=stop9 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-8 on-event=limit8 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-8 on-event=stop8 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-7 on-event=limit7 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-7 on-event=stop7 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-6 on-event=limit6 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-6 on-event=stop6 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-5 on-event=limit5 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-5 on-event=stop5 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-4 on-event=limit4 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-4 on-event=stop4 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-3 on-event=limit3 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-3 on-event=stop3 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-2 on-event=limit2 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-2 on-event=stop2 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
add comment="" disabled=no interval=1d name=l-1 on-event=limit1 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/25/2011 start-time=05:30:00
add comment="" disabled=no interval=1d name=s-1 on-event=stop1 policy=\
read,write,policy,test,sniff,sensitive start-date=dec/24/2011 start-time=22:00:00
Copy kan code diatas diterminal winbox lalu cek di >system>schedule. Tested Mikrotik RB750 Work.
-Keterangan: code diatas nanti yang akan mengeksekusi waktu yang kita jadwalkan kapan bandwith akan dirubah..
-jam nya silahkan set sesuai kebutuhan anda.
-agar seluruh code diatas berjalan dengan baik jangan lupa cocokkan jam dimikrotik anda dengan komputer PC/laptop anda, untuk seting jam mikrotik nanti akan saya bahas dipost lain di blog ini.
Silahkan anda berkreasi dengan code diatas sesuai dengan keperluan anda dan untuk para senior,master dibidangmikrotik tolong dikoreksi apa bila ada kesalahan penulisan atau pemahaman code diatas, karena saya hanya berbagi apa yang saya ketahui.
Seandainya tulisan diatas berguna silahkan kalau anda tidak keberatan untuk memberikan follow dan komentar di blog ini.
Selamat mencoba.
Cara seting jam,tanggal,bulan dan tahun di mikrotik
Ditulis Oleh : Unknown~Tutrorial Blogspot
Sobat sedang membaca artikel tentang Script Limit Bandwith Dengan Schedule. Oleh Admin, Sobat diperbolehkan mengcopy paste atau menyebar-luaskan artikel ini. Silakan di rubah dan sesuaikan dengan selera sobat
