找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 8196|回复: 4

[脚本] 自动限流量脚本

[复制链接]
发表于 2005-3-6 17:37:01 | 显示全部楼层 |阅读模式

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

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

×
First let me start by saying that I have no hair left since I pulled it all out trying to get this to work. That said, would someone please post an example of a script that will add multiple simple queues. I do not care what the name is. nor do I care what the badwidth/speed is I just want to be able to add 75 simple queues all in the same class C (ie. 192.168.1.x). No matter what I try all I get is a log entry ---- "invalid expression" Also I do not want to use PCQ. I have searched the forums as well as the doc's so I do not need a referal to them. Thanks As easy as that: for i from=1 to=75 do={/queue simple add target-address=(192.168.1. . $i . "/32") max-limit=56000} And to remove all this: Code: /queue simple remove [find] Eugene
routeros
发表于 2005-3-6 17:56:33 | 显示全部楼层
测试不成功
routeros
回复

使用道具 举报

发表于 2005-3-7 11:42:54 | 显示全部楼层
我以前也是用。net写循环,输出要限定的ip命令文本,然后导到route os中
routeros
回复

使用道具 举报

发表于 2005-3-7 15:08:07 | 显示全部楼层
再改改把!
routeros
回复

使用道具 举报

发表于 2005-12-14 14:06:26 | 显示全部楼层
:for aaa from 16 to 254 do={/queue simple add name=(queue . $aaa)dst-address=(192.168.0. . $aaa. "/32")interface=Wan limit-at=409600/409600 max-limit=409600/409600}

以上测试通过,请不要人为加回车
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-18 04:45 , Processed in 0.049540 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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