|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
现用ros2.9.27 10兆光纤(上行、下行对称) 桥接模式 150台机器 ROS只做限速
脚本如下:
/ ip firewall mangle
add chain=prerouting action=mark-packet new-packet-mark=all-mark passthrough=yes comment="" disabled=no
/ system script
add name="DW_on" source=":for aaa from 2 to 159 do={/queue sim en \[find name=\(DW_ . \$aaa\)\]}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="DW_off" source=":for aaa from 2 to 159 do={/queue sim dis \[find name=\(DW_ . \$aaa\)\]}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="UP_on" source=":for aaa from 2 to 159 do={/queue sim en \[find name=\(UP_ . \$aaa\)\]}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="UP_off" source=":for aaa from 2 to 159 do={/queue sim dis \[find name=\(UP_ . \$aaa\)\]}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="CQ-DWON" source=":if \(\[ /queue sim get \[/queue sim find name=\"CQ_DW\"\] disable \]=true \) do={/queue sim enable PCQ_DW}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="CQ-DWOFF" source=":if \(\[ /queue sim get \[/queue sim find name=\"PCQ_DW\"\] disable \]=false \) do={/queue sim disable PCQ_DW}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="PCQ-UPON" source=":if \(\[ /queue sim get \[/queue sim find name=\"PCQ_UP\"\] disable \]=true \) do={/queue sim enable PCQ_UP}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="PCQ-UPOFF" source=":if \(\[ /queue sim get \[/queue sim find name=\"PCQ_UP\"\] disable \]=false \) do={/queue sim disable PCQ_UP}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="script1_UP" source=":for aaa from 2 to 159 do={/queue simple add name=\(UP_ . \$aaa\) dst-address=\(192.168.1. . \$aaa\) interface=wan max-limit=0/1000000 burst-limit=0/3000000 burst-threshold=0/512000 burst-time=0s/8s }" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="script1_DW_" source=":for aaa from 2 to 159 do={/queue simple add name=\(DW_ . \$aaa\) dst-address=\(192.168.1. . \$aaa\) interface=qiao max-limit=1000000/0 burst-limit=3000000/0 burst-threshold=512000/0 burst-time=8s/0s }" policy=ftp,reboot,read,write,policy,test,winbox,password
/ queue type
add name="PCQ-up" kind=pcq pcq-rate=800000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
add name="PCQ-down" kind=pcq pcq-rate=700000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
/ queue simple
add name="PCQ_UP" target-addresses=192.168.1.0/24 dst-address=0.0.0.0/0 interface=wan parent=none packet-marks=all-mark direction=both priority=1 queue=default-small/PCQ-up limit-at=0/0 max-limit=0/9500000 total-queue=default-small disabled=yes
add name="PCQ_DW" target-addresses=192.168.1.0/24 dst-address=0.0.0.0/0 interface=qiao parent=none packet-marks=all-mark direction=both priority=1 queue=PCQ-down/default-small limit-at=0/0 max-limit=9500000/0 total-queue=default-small disabled=yes
/ tool traffic-monitor
add name="DW_8.8M" interface=wan traffic=received trigger=above threshold=8200000 on-event=DW_on comment="" disabled=no
add name="DW_5M" interface=wan traffic=received trigger=below threshold=4000000 on-event=DW_off comment="" disabled=no
add name="UP_4M" interface=lan traffic=received trigger=below threshold=4000000 on-event=UP_off comment="" disabled=no
add name="UP_8.8" interface=lan traffic=received trigger=above threshold=6800000 on-event=UP_on comment="8800000" disabled=no
add name="PCQ-DWON" interface=wan traffic=received trigger=above threshold=9500000 on-event=PCQ-DWON comment="" disabled=no
add name="PCQ-DWOFF" interface=wan traffic=received trigger=below threshold=6000000 on-event=PCQ-DWOFF comment="" disabled=no
add name="PCQ-UPON" interface=lan traffic=received trigger=above threshold=7500000 on-event=PCQ-UPON comment="9500000" disabled=no
add name="PCQ-UPOFF" interface=lan traffic=received trigger=below threshold=6000000 on-event=PCQ-UPOFF comment="7000000" disabled=no
现在问题是每两天就会丢失“qiao"的桥接虚拟网卡,造成下载限速失败。。。
各位有没有好办法解决啊???---------谢谢。。。。。。。。。。。。。 |
|