|
发表于 2010-11-10 23:59:25
|
显示全部楼层
回复 1# jia_ok
楼主请问下我后面的那段计划任务脚本导入错误
/system scheduler
add comment="" disabled=no interval=30s name=AUTO-IP on-event="/ip route set [/ip route find comment=1] gateway=\
[/ip address get [/ip address find dynamic=yes interface=pppoe-out1] network]\r\
\n/ip route set [/ip route find comment=2] gateway=[/ip address get [/ip address find dynamic=yes interface=\
pppoe-out2] network]\r\
\n/ip route set [/ip route find comment=3] gateway=[/ip address get [/ip address find dynamic=yes interface=\
pppoe-out2] network]" policy=reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 \
start-time=00:00:00
add comment="" disabled=no interval=30s name=NET-IP on-event=":local ADSLIP1 0 \r\
\n:local NATIP1 0 \r\
\n:local ADSLIP2 0 \r\
\n:local NATIP2 0 \r\
\n:set ADSLIP1 [/ip address get [/ip address find interface=pppoe-out1] address] \r\
\n:set ADSLIP1 [:pick \$ADSLIP1 0 [:find \$ADSLIP1 \"/\"]]\r\
\n:set ADSLIP2 [/ip address get [/ip address find interface=pppoe-out2] address] \r\
\n:set ADSLIP2 [:pick \$ADSLIP2 0 [:find \$ADSLIP2 \"/\"]]\r\
\n:set NATIP1 [/ip firewall nat get [/ip firewall nat find comment=1] to-addresses]\r\
\n:set NATIP2 [/ip firewall nat get [/ip firewall nat find comment=2] to-addresses]\r\
\n:if (\$ADSLIP1 != \$NATIP1) do={/ip firewall nat set [/ip firewall nat find comment=1] to-addresses=\$ADSL\
IP1}\r\
\n:if (\$ADSLIP2 != \$NATIP2) do={/ip firewall nat set [/ip firewall nat find comment=2] to-addresses=\$ADSL\
IP2}" policy=reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 start-time=\
00:00:00
请问下楼主怎么回事?我用的是ROS3.13,难道不行? |
|