找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5062|回复: 5

[限速] 更高级的动态限速方法

[复制链接]
发表于 2008-12-31 13:35:35 | 显示全部楼层 |阅读模式

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

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

×
动态限速(上传固定速度,下载动态限速)
说明:上传固定1M ,总下载达到15M自动开启下载限速(4M),低于5M自动关闭下载限速
:for user from 2 to 254 do={/queue simple add name=$user target-addresses=("193.168.1." . $user . "/32") max-limit=1000000/4000000}

/ system script
add name="node_off" source=":for aaa from 2 to 254 do={/queue sim set $aaa direction=upload}"
add name="node_on" source=":for aaa from 2 to 254 do={/queue sim set $aaa direction=both}"

/ tool traffic-monitor
add name="down_15M" interface=wan traffic=received trigger=above \
    threshold=15000000 on-event=node_on comment="" disabled=no
add name="down_5M" interface=wan traffic=received trigger=below \
    threshold=5000000 on-event=node_off comment="" disabled=no
routeros
发表于 2008-12-31 15:43:13 | 显示全部楼层
会在临界工作时跳来跳去。
routeros
回复

使用道具 举报

发表于 2008-12-31 16:41:30 | 显示全部楼层
  这样的话,机器的负荷会很重啊。
routeros
回复

使用道具 举报

发表于 2009-6-26 17:30:15 | 显示全部楼层
对  经常会出现临界状态
routeros
回复

使用道具 举报

发表于 2009-6-26 17:44:25 | 显示全部楼层
过来学习下!!!
routeros
回复

使用道具 举报

发表于 2009-6-26 18:42:15 | 显示全部楼层
表面上看这些规则很高尚,还带监视器,但在实际应用中却是不实用。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 17:40 , Processed in 0.122376 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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