mayong 发表于 2008-6-17 22:43:09

(求助)桥接问题(桥接网卡丢失)???

现用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 \}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="DW_off" source=":for aaa from 2 to 159 do={/queue sim dis \}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="UP_on" source=":for aaa from 2 to 159 do={/queue sim en \}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="UP_off" source=":for aaa from 2 to 159 do={/queue sim dis \}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="PCQ-DWON" source=":if \(\[ /queue sim get \ disable \]=true \) do={/queue sim enable PCQ_DW}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="PCQ-DWOFF" source=":if \(\[ /queue sim get \ 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 \ 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 \ 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"的桥接虚拟网卡,造成下载限速失败。。。
各位有没有好办法解决啊???---------谢谢。。。。。。。。。。。。。:')

mayong 发表于 2008-6-18 22:11:40

自己顶上。。。
页: [1]
查看完整版本: (求助)桥接问题(桥接网卡丢失)???