找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5469|回复: 1

[限速] 怎么批量修改PCQ设置啊?

[复制链接]
发表于 2008-1-19 02:15:44 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
我用
: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}

生成了批量限速

现在想用流量监控来动态限速,没办法批量修改啊。现在只有用批量删除再批量添加了,也不知道这样做对系统好不好。
哪个大虾指导一下批量修改限速啊?
routeros
 楼主| 发表于 2008-1-19 03:17:41 | 显示全部楼层
已经成功了,脚本是
/ system script
add name="2M" source=":delay 3
\n:for ip from 2 to 254  do={/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 254  do={/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 254  do={/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
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2025-6-7 19:44 , Processed in 0.144585 second(s), 14 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表