找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2119|回复: 10

[其它] 2条线路怎么基于时间的访问其中一条?

[复制链接]
发表于 2007-8-21 22:30:16 | 显示全部楼层 |阅读模式

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

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

×
2条线路怎么基于时间的访问其中一条?
现在有两条线路如下
A线,        210.230.170.*

B线,        210.230.171.*

routeros如何实现在白天9:00至18:00用A线,晚上18:00至 第二天早上9:00自动切换用B线。如何设置?
大家帮忙,谢谢!!!

在syste scheduler用脚本怎么写?

[ 本帖最后由 pyt666 于 2007-8-21 22:31 编辑 ]
routeros
发表于 2007-8-22 11:56:29 | 显示全部楼层
如果网关一样
9点运行
/ip address set [/ip address find address=210.230.170.*] disable=no
/ip address set [/ip address find address=210.230.171.*] disable=yes

18点运行
/ip address set [/ip address find address=210.230.171.*] disable=no
/ip address set [/ip address find address=210.230.170.*] disable=yes

如果网关不一样
9点运行
/ip route set [/ip route find gateway=A-Line-Gateway ] disable=no
/ip route set [/ip route find gateway=B-Line-Gateway ] disable=yes

18点运行
/ip route set [/ip route find gateway=B-Line-Gateway ] disable=no
/ip route set [/ip route find gateway=A-Line-Gateway ] disable=yes
routeros
回复

使用道具 举报

 楼主| 发表于 2007-8-22 12:18:35 | 显示全部楼层
谢谢楼上的朋友回复。您看这样对吗?我2个线路网关不一样。

[ 本帖最后由 pyt666 于 2007-8-22 12:46 编辑 ]
ros.jpg
routeros
回复

使用道具 举报

发表于 2007-8-22 12:27:49 | 显示全部楼层
楼上的打错字了!
routeros
回复

使用道具 举报

 楼主| 发表于 2007-8-22 12:44:58 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2007-8-22 13:21:30 | 显示全部楼层
A-Line-Gateway就是A线网关
B-Line-Gateway就是B线网关

PS:你改掉了

你原来的回复是写谢谢楼主的回复。
routeros
回复

使用道具 举报

发表于 2007-8-22 13:24:42 | 显示全部楼层
想起一个作弊的笑话,连名字也照抄.....
routeros
回复

使用道具 举报

 楼主| 发表于 2007-8-22 14:55:42 | 显示全部楼层
9点运行
/ip route set [/ip route find gateway=210.230.170.1] disable=no
/ip route set [/ip route find gateway=210.230.171.1] disable=yes

18点运行
/ip route set [/ip route find gateway=210.230.171.1] disable=no
/ip route set [/ip route find gateway=210.230.170.1] disable=yes

请问这样修改正确吗?上面的时间是不是也要设置啊?

[ 本帖最后由 pyt666 于 2007-8-22 15:02 编辑 ]
routeros
回复

使用道具 举报

发表于 2007-8-22 15:31:24 | 显示全部楼层
在 interval处设置

9点运行的: 1d 09:00:00
18点运行: 1d 18:00:00
routeros
回复

使用道具 举报

 楼主| 发表于 2007-8-22 17:45:18 | 显示全部楼层
感谢大家的帮忙~
现在我就等到了18:00会不会切换。
routeros
回复

使用道具 举报

 楼主| 发表于 2007-8-24 08:14:00 | 显示全部楼层
2天过去了,还是不能自动切换线路?哪里还有问题?版本是2.9.6

[ 本帖最后由 pyt666 于 2007-8-24 08:15 编辑 ]
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-14 01:49 , Processed in 0.107134 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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