找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2759|回复: 2

[其它] 苦找:双光纤固定ip,如何设置,保证热备份

[复制链接]
发表于 2005-1-15 18:38:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
双光纤固定ip,我设置了ip route add gate=光纤1网关,光纤2网关后,两条光纤都可以使用上网,但是光纤1断线后,光纤2没断,整个路由就断线,重启也没用,但是光纤2掉线后,路由还是可以上网,用什么设置可以保证无论哪根光纤掉了,只要其中一根不掉,都能正常使用路由,最好能不用重启路由,谢谢了先
routeros
 楼主| 发表于 2005-1-16 12:41:08 | 显示全部楼层
As it is very desirable to provide fail-over together with load-balancing, you can use the following script to maintain the correct gateway list:/system script add name=fo source={  :local R1  :local R2  :if ([/tool netwatch get R1 status]=up) do={:set R1 1.1.1.1}  :if ([/tool netwatch get R2 status]=up) do={:set R2 2.2.2.1}   /ip route set [/ip route find dst-address=0.0.0.0/0] \  gateway=($R1 . , . $R2)  }/tool netwatch add comment=R1 host=1.1.1.1 interval=5s up-script=fo \  down-script=fo/tool netwatch add comment=R2 host=2.2.2.1 interval=5s up-script=fo \  down-script=fo以上是我在官方找到的资料,好用啊
routeros
回复

使用道具 举报

发表于 2005-1-16 13:34:40 | 显示全部楼层
你现在用着双线路热备份吗??我是打算用BSD做多线路负载均衡...       在wsgtrsys的帮助下决定做的....    http://www.routerclub.com/ipb/index.php?showtopic=5094
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-29 11:27 , Processed in 0.047620 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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