找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3840|回复: 5

[脚本] 这个脚本,谁能帮我一句一句翻译一下,谢谢了

[复制链接]
发表于 2009-7-21 23:25:15 | 显示全部楼层 |阅读模式

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

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

×
/system script add name=fo source={
  :local R1
  :local R2
  :local R3
  :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}
  :if ([/tool netwatch get R3 status]=up) do={:set R3 3.3.3.1}
   /ip route set [/ip route find dst-address=0.0.0.0/0] \
  gateway=($R1 . , . $R2 . , . $R3)
  }
/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
/tool netwatch add comment=R3 host=3.3.3.1 interval=5s up-script=fo \
  down-script=fo

作用和功能是什么
routeros
发表于 2009-7-22 02:21:47 | 显示全部楼层
出多少价,没有免费的服务,要不自己找
routeros
回复

使用道具 举报

发表于 2009-7-22 08:42:24 | 显示全部楼层
老实跟你说这个脚本没有一点价值
routeros
回复

使用道具 举报

发表于 2009-7-22 16:28:14 | 显示全部楼层
每5秒检测一次网关状态,一旦发现有网关断线或上线,则修改网关值。
routeros
回复

使用道具 举报

发表于 2009-7-27 18:43:29 | 显示全部楼层
没啥用
routeros
回复

使用道具 举报

发表于 2009-8-5 00:13:03 | 显示全部楼层
00
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 21:27 , Processed in 0.083417 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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