:for aaa from 1 to 253 do={/queue simple add name=(wbsz . $aaa) dst-address=(192.168.0. . $aaa) limit-at=0/0 max-limit=1500000/1000000} |
动态限速脚本:
:for aaa from 1 to 253 do={/queue simple add name=(wbsz . $aaa) dst-address=(192.168.0. . $aaa) limit-at=0/0 max-limit=500000/500000 burst-limit=1000000/3000000 burst-threshold=128000/512000 burst-time=30s/1m}
|
说明: aaa是变量 1 to 253是192.168.x.1-253号机IP 192.168.0. . $aaa是IP 上两句加起来是192.168.0.1~192.168.0.253 max-limit=2000000/2000000是上行/下行 wbsz:是机器名前缀,可任意更改
使用: WinBox-System-Scripts-+ Name(脚本名程) Source(脚本) OK-选择要运行的脚本-Run Script
|