|
楼主 |
发表于 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 |
|