- 论坛徽章:
- 0
|
Mikrotik Routeros 3.x 限速脚本
2.9.x的脚本在3.x中执行都有问题,下面是限速脚本,其他脚本请参考修改再执行,想不明白老外经常改来改去的。
:for aaa from 2 to 254 do={
/queue simple add name="queue$aaa" dst-address="192.168.0.$aaa" limit-at="0/0" max-limit="1000000/2000000"
}
本脚本功能:把192.168.0网段,自192.168.0.2到192.168.0.254限速为上传为1mb/s,下载为2mb/s
命令解释:
from 2 to 254 :说明是从2开始到254
name="queue$aaa" :其中$aaa,要与前面的 for aaa对应,
dst-address="192.168.0.$aaa":192.168.0就是你要限速的网段,请根据需求修改
limit="1000000/2000000":格式为 上传/下载,即上传为1mb/s,下载2mb/s
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21251/showart_1193851.html |
|