脚本
: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
}
}
}
这个是用生成器生成的动态刷新脚本,:set x 2 这是不是订议了两条线啊,如果是4条用不用修改一下啊。麻烦高手讲解一下 请多看看教程,我已经在3.20的脚本使用中讲了具体情况. 贴子的联接是多少啊。麻烦发给我看下
页:
[1]