{"id":830,"date":"2017-10-30T11:49:03","date_gmt":"2017-10-30T09:49:03","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=830"},"modified":"2017-10-30T11:49:03","modified_gmt":"2017-10-30T09:49:03","slug":"mikrotik-simple-queue-script-add-ip","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=830","title":{"rendered":"MikroTik &#8211; Simple queue script \u2013 add all IP"},"content":{"rendered":"<p>To add all IPs in your MikroTik Simple queue, just open your MikroTik RouterOS terminal and run the following script.<\/p>\n<p><code class=\" prettyprinted\"><span class=\"pun\">:<\/span><span class=\"kwd\">for<\/span><span class=\"pln\">\u00a0x\u00a0<\/span><span class=\"kwd\">from<\/span><span class=\"pln\">\u00a0<\/span><span class=\"lit\">1<\/span><span class=\"pln\">\u00a0to\u00a0<\/span><span class=\"lit\">254<\/span><span class=\"pln\">\u00a0<\/span><span class=\"kwd\">do<\/span><span class=\"pun\">={<\/span><span class=\"str\">\/queue simple add name=\"queue-$x\" max-limit=2M\/<\/span><span class=\"lit\">2M<\/span><span class=\"pln\">\u00a0target<\/span><span class=\"pun\">=<\/span><span class=\"str\">\"192.168.1.$x\"<\/span><span class=\"pun\">}<\/span><\/code><\/p>\n<p>1 to 254 on ip-de vahemik<br \/>\n<code class=\" prettyprinted\"><span class=\"str\">queue-$x - queue nimi kuni (queue-)<\/span><\/code><br \/>\n<code class=\" prettyprinted\"><span class=\"str\">max-limit=2M\/<\/span><span class=\"lit\">2M - queue kiirus nii allalaadimine kui ka \u00fcles laadimine<br \/>\n<\/span><\/code><code class=\" prettyprinted\"><span class=\"str\">192.168.1.$x - ip vahemik millele kiirused peale l\u00e4hevad<\/span><\/code><\/p>\n<p>Here in\u00a0max-limit variable you can define max speed upload\/download. For example I used 2M for both download and upload. This simple loop script will easily add all of your IPs in your MikroTik Simple Queue. After that you can manually modify when you need for any specific IP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add all IPs in your MikroTik Simple queue, just open your MikroTik RouterOS terminal and run the following script. :for\u00a0x\u00a0from\u00a01\u00a0to\u00a0254\u00a0do={\/queue simple add name=&#8221;queue-$x&#8221; max-limit=2M\/2M\u00a0target=&#8221;192.168.1.$x&#8221;} 1 to 254 on ip-de vahemik queue-$x &#8211; queue nimi kuni (queue-) max-limit=2M\/2M &#8211; queue kiirus nii allalaadimine kui ka \u00fcles laadimine 192.168.1.$x &#8211; ip vahemik millele kiirused peale l\u00e4hevad [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":612,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-830","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=830"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/830\/revisions"}],"predecessor-version":[{"id":831,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/830\/revisions\/831"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/612"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}