找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1510|回复: 1

[其它] (求助)桥接问题(桥接网卡丢失)???

[复制链接]
发表于 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 \[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"的桥接虚拟网卡,造成下载限速失败。。。
各位有没有好办法解决啊???---------谢谢。。。。。。。。。。。。。
routeros
 楼主| 发表于 2008-6-18 22:11:40 | 显示全部楼层
自己顶上。。。
routeros
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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