{求助} 做完NTH负载平衡后 路由重启ADSL找不到网关??
本帖最后由 seahifi 于 2012-3-4 12:52 编辑环境: ROS2.9.27
wan1: interface=ether2 (ADSL动态拨号)
wan2: interface=ether3 (ADSL固定IP)
按网上的教程安全完成后
发现重启路由后 重新捕获的ether2网关是ADSL新IP 不是新网关
需要把新IP改成新网关后 才能正常
ADSL长时间断线后 再重拨 一样的问题
脚本如下
:local assign-address
:local new-address
:local status
:local adckip
:local new-gateway
:local x
:set x 1
:for i from=1 to=$x do={
:set status running]
:if ($status=true) do={
:set new-address address]
:set new-address [:pick $new-address 0 ([:len $new-address] -3)]
:set assign-address address]
:set assign-address [:pick $assign-address 0 ([:len $assign-address] -3)]
:set new-gateway network]
:set adckip host]
:if ($assign-address != $new-address) do={ /ip address set address=$new-address network=$new-address broadcast=$new-address
/ip route set gateway=$new-address
/ip fir nat set to-addresses=$new-address
}
:if ($new-gateway != $adckip) do={/tool netwatch set host=$new-gateway]
}
}
}
怎么办??
求助哇
:handshake
:L:'):Q:L:'):Q :'):'):'):'):'):') ....................
页:
[1]