找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9385|回复: 15

[脚本] RouterOS 2.9.6的线路切换脚本,谁知道怎么写?

[复制链接]
发表于 2005-11-13 03:24:55 | 显示全部楼层 |阅读模式

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

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

×
谁知道啊,先谢谢了
routeros
 楼主| 发表于 2005-11-13 04:54:25 | 显示全部楼层

routeros
回复

使用道具 举报

 楼主| 发表于 2005-11-13 05:47:30 | 显示全部楼层

help

routeros
回复

使用道具 举报

 楼主| 发表于 2005-11-16 17:36:18 | 显示全部楼层

有人知道吗?

routeros
回复

使用道具 举报

 楼主| 发表于 2005-11-16 18:46:24 | 显示全部楼层
就是网通的掉了,换电信的;电信的掉了,换网通的。
routeros
回复

使用道具 举报

 楼主| 发表于 2005-11-16 20:00:25 | 显示全部楼层
add name=telecom_down source={/ip route set {[/ip route table telecom find dst

0.0.0.0] gateway 192.168.1.11}
add name=telecom_up source={/ip route set {[/ip route table telecom find dst

0.0.0.0] gateway 192.168.1.10}
add name=cnc_down source={/ip route set {[/ip route table cnc find dst 0.0.0.0]

gateway 192.168.1.10}
add name=cnc_up source={/ip route set {[/ip route table cnc find dst 0.0.0.0]

gateway 192.168.1.11}

这样对不对?
routeros
回复

使用道具 举报

 楼主| 发表于 2005-11-16 20:02:06 | 显示全部楼层
电信是:192.168.1.10

网通是:192.168.1.11
routeros
回复

使用道具 举报

 楼主| 发表于 2005-11-18 16:27:35 | 显示全部楼层
来个知道的阿
routeros
回复

使用道具 举报

发表于 2005-11-18 17:37:38 | 显示全部楼层
原帖由 hermithj 于 2005-11-16 20:00 发表
add name=telecom_down source={/ip route set {[/ip route table telecom find dst

0.0.0.0] gateway 192.168.1.11}
add name=telecom_up source={/ip route set {[/ip route table telecom find dst

0 ...



这个是2.8X的哈  2.9X的哪里有TABLE?
routeros
回复

使用道具 举报

发表于 2005-11-18 17:40:12 | 显示全部楼层
/ ip route
set [ / ip route find dst-address=0.0.0.0] gateway 网关
routeros
回复

使用道具 举报

发表于 2005-11-18 17:42:42 | 显示全部楼层
不过没的TABLE是不好整哈,如果以电信为主线的话那个CNCUP不好写
routeros
回复

使用道具 举报

发表于 2005-11-19 00:37:40 | 显示全部楼层
9494, 2.9版给大家出了个难题。
routeros
回复

使用道具 举报

发表于 2005-11-26 22:17:48 | 显示全部楼层
是啊
routeros
回复

使用道具 举报

发表于 2006-3-1 19:31:13 | 显示全部楼层
这么简单的问题还用问??
routeros
回复

使用道具 举报

发表于 2006-3-3 01:35:16 | 显示全部楼层
没有TABLE也没关系。TABLE不过是脚本里的一个条件而已
可以考虑用comment作为条件
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 15:31 , Processed in 0.076097 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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