lovellh 发表于 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 Eugene

yk0420 发表于 2005-3-6 17:56:33

测试不成功

zxny 发表于 2005-3-7 11:42:54

我以前也是用。net写循环,输出要限定的ip命令文本,然后导到route os中

qd_router 发表于 2005-3-7 15:08:07

再改改把!

china2002 发表于 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}

以上测试通过,请不要人为加回车
页: [1]
查看完整版本: 自动限流量脚本