求助!关于双ADSL负载均衡,重启ROS无法上网问题
看了lovebird大大的双线adsl负载均衡配置过程,感觉受益非浅,马上按lovebird大大的方法试验了一个,非常不错,但有一个问题就是重启了ROS之后,Router list可以自动更新IP,但在Firewall的NAT选项里的srcnat(ip伪装)两条的规则都无法自动更新IP,求教一下各位大大,到底是怎么回事?我的ROS是2.9.27的,在此感谢各位大大了!脚本就按网上的IP更新脚本!:local assign-address
:local new-address
:local status
:local x
:set x 2
: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)]
: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
/ip route set gateway=$new-address
}
}
[ 本帖最后由 bensonhb 于 2008-3-28 10:00 编辑 ] 感谢大大的回答!应该是标注的问题!!!:) :) :)
页:
[1]