找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1512|回复: 3

[其它] 求教 2.9.27 动态网关 问题 请高手帮帮忙看看

[复制链接]
发表于 2007-7-9 16:34:34 | 显示全部楼层 |阅读模式

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

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

×
假设 CNCGateWay=固定IP PPPGateWay=动态IP  要求 gateway=固定IP,动态IP

:global PPPGateWay
:global CNCGateWay
:set CNCGateWay [/tool netwatch get cnc host]
:set PPPGateWay [/ip add get [find interface=pppoe-out1] network]
/ip route set cnc gateway=这里应该怎么写?

小弟初学routeros 请高手帮帮忙看看
routeros
发表于 2007-7-10 21:40:40 | 显示全部楼层
这脚本有问题
routeros
回复

使用道具 举报

 楼主| 发表于 2007-7-12 12:00:58 | 显示全部楼层
哦 那怎样写 才能得到 gateway=固定IP,动态IP ?
routeros
回复

使用道具 举报

发表于 2007-7-14 00:11:14 | 显示全部楼层
/ip route set cnc gateway=这里应该怎么写?
/ip route set cnc gateway=$CNCGateWay,$PPPGateWay 吧
不过直觉前面脚本好像有误
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-29 05:38 , Processed in 0.057862 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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