怎么批量修改PCQ设置啊?
我用:for szwm from 2 to 255 do={/queue simple add name=(SYZX . $szwm) dst-address=(192.168.2. . $szwm) max-limit=1024000/4096000 interface=all disabled=no}
生成了批量限速
现在想用流量监控来动态限速,没办法批量修改啊。现在只有用批量删除再批量添加了,也不知道这样做对系统好不好。
哪个大虾指导一下批量修改限速啊? 已经成功了,脚本是
/ system script
add name="2M" source=":delay 3
\n:for ip from 2 to 254do={/queue simple set \
\(SYZX . \$ip\)max-limit=1536000/192000 }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="5M" source=":delay 3
\n:for ip from 2 to 254do={/queue simple set \
\(SYZX . \$ip\)max-limit=1024000/128000 }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="6M" source=":delay 3
\n:for ip from 2 to 254do={/queue simple set \
\(SYZX . \$ip\)max-limit=512000/128000 }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
/ tool traffic-monitor
add name="2M" interface=ether2 traffic=received trigger=below \
threshold=2000000 on-event=2M comment="" disabled=yes
add name="5M" interface=ether2 traffic=received trigger=above \
threshold=5000000 on-event=5M comment="" disabled=no
add name="6M" interface=ether2 traffic=received trigger=above \
threshold=5800000 on-event=6M comment="" disabled=no
页:
[1]