找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3263|回复: 7

[脚本] 一个切换脚本分离的问题

[复制链接]
发表于 2007-4-2 08:12:38 | 显示全部楼层 |阅读模式

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

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

×
add name="CNCdown" source=":if ([/tool netwatch get [/tool netwatch find
      comment=TEL] status]="down") do {/ip route set [/ip route find
      comment=CNC] gateway [/ip address get [/ip address find
      interface=pppoe-out1] network]} else {/ip route set [/ip route find
      comment=CNC] gateway 电信网关}"
      policy=ftp,reboot,read,write,policy,test,winbox,password

去掉拨号部分剩下的就可以应用到固定IP上了,可怎么修改啊,小弟不才搞不定

add name="CNCdown" source=":if ([/tool netwatch get [/tool netwatch find
      comment=TEL] status]="down") do {/ip route set [/ip route find
      comment=CNC] gateway [/ip address get [/ip address find
      interface=pppoe-out1] network]} else
{/ip route set [/ip route find
      comment=CNC] gateway 电信网关}"
      policy=ftp,reboot,read,write,policy,test,winbox,password


将注为红色字体的删除,将commnet=cnc 改为TEL,不知道对不对,达人来解
找了好多脚本可以不都合适,昨天又找了一个可是需要去掉ADSL的部分,各仁版主、仁兄帮帮忙!
不胜感激啊!!!

[ 本帖最后由 sakula 于 2007-4-2 08:44 编辑 ]
routeros
 楼主| 发表于 2007-4-2 08:44:17 | 显示全部楼层
大家都还没起来吗?
routeros
回复

使用道具 举报

 楼主| 发表于 2007-4-2 11:15:10 | 显示全部楼层
有人看没人回?
routeros
回复

使用道具 举报

发表于 2007-4-2 11:23:40 | 显示全部楼层
你哪儿找的脚本啊,写得好烂。
routeros
回复

使用道具 举报

 楼主| 发表于 2007-4-2 14:04:22 | 显示全部楼层
版主出面了

唉,没有找到,版主能给个不?
routeros
回复

使用道具 举报

 楼主| 发表于 2007-4-2 19:21:35 | 显示全部楼层
看的人多,没有人回贴啊
routeros
回复

使用道具 举报

发表于 2007-4-2 19:34:05 | 显示全部楼层
2.9.27还需要切换教本吗?
routeros
回复

使用道具 举报

 楼主| 发表于 2007-4-3 08:45:32 | 显示全部楼层
你指的是0和1吗?
2.96的可以不?没这样用过不知道怎么样啊
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-9 18:17 , Processed in 0.176017 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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