求助ROS DDNS的更新IP不能连接
我的ROS是三线电信ADSL负载,pppoe-out1的Add Default Route打钩设为默认路由了
changeip.net那里显示更新了IP,可就是外网PING不通,winbox连接不上,除非如图中红圈圈出的框的URL Query String跟Detected IP的这两个IP相同才行,请问这是怎么回事呢
这是我的DDNS更新脚本,
:log info "DDNS: Begin"
:global ddns-user "xxxxxxxxx"
:global ddns-pass "xxxxxxxxx"
:global ddns-host "xxxxxxxxxt"
:global ddns-interface "pppoe-out1"
:global ddns-system ("mt-" . version] )
:global ddns-ip [ /ip address get address ]
:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }
:if ([ :typeof $ddns-ip ] = nil ) do={
:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.") } else={
:if ($ddns-ip != $ddns-lastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
:global ddns-lastip $ddns-ip } else={
:log info "DDNS: No change"
}
}
:log info "DDNS: End" {:3_48:}围观 群众 A 没人解答下吗? 更新的ip不正确 更新的ip不正确
WGHBOY 发表于 2010-1-22 20:15 http://bbs.routerclub.com/images/common/back.gif
错 是域名错误。。。日原来是被屏蔽了域名啊 我日。。 更新ip必须跟默认线路ip一致才能用域名登录 更新ip必须跟默认线路ip一致才能用域名登录
WGHBOY 发表于 2010-1-23 00:21 http://bbs.routerclub.com/images/common/back.gif
这话到是没错 呵呵 呵呵。。。。看情况。。。 更新ip必须跟默认线路ip一致才能用域名登录
WGHBOY 发表于 2010-1-23 00:21 http://bbs.routerclub.com/images/common/back.gif
这个怎么解决呢?我的是三线ADSL,更新是自动的,何解高手 好像3.x的就能不用默认网关登录,你这个原因是更新脚本不行,没有判断那条是默认 好像3.x的就能不用默认网关登录,你这个原因是更新脚本不行,没有判断那条是默认
WGHBOY 发表于 2010-1-23 14:02 http://bbs.routerclub.com/images/common/back.gif
我的ROS是2.951
那你能不能给个更新DDNS的脚本我用用,谢谢 别沉下去了,高手给个能用的更新脚本我啊 :global ddnsuser "用户名"
:global ddnspass "密码"
:global ddnshost "域名"
:global ddnsip
:global ddnslastip
:if ([ :typeof $ddnslastip ] = nil ) do={ :global ddnslastip "0" }
:global ddnsinterface
:global ddnssystem ("mt-" . )
:local int
:foreach int in= do={
:if ([:typeof ] != str ) do={
:global ddnsinterface
}
}
:global ddnsip [ /ip address get address ]
:if ([ :typeof $ddnsip ] = nil ) do={
:log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
:log info [ :put ] key-name=$ddnsuser key=$ddnspass ] ]
:global ddnslastip $ddnsip
}
}
# End of script 谢谢WGHBOY
马上试一下
页:
[1]