Community discussions

MikroTik App
 
2jarek
Member Candidate
Member Candidate
Topic Author
Posts: 151
Joined: Thu May 17, 2007 3:28 pm
Location: Poland

RC11 simple script not work

Wed Nov 28, 2007 11:58 pm

:for x from=3 to=254 do={ /ip address add address=(zzz.zzz.zzz. . $x) netmask=255.255.255.0 interface=wan}

ON RC1, RC6, RC9 work good....

How are possible all new versions have a lots of new bugs ? randomize bugger ? Maybe coders respect their work so have that for ages ?
:(
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: RC11 simple script not work

Thu Nov 29, 2007 12:11 am

Wrong syntax. Should be:
:for x from=3 to=254 do={ /ip address add address=("zzz.zzz.zzz." . $x) netmask=255.255.255.0 interface=wan}
or
:for x from=3 to=254 do={ /ip address add address=("zzz.zzz.zzz.$x") netmask=255.255.255.0 interface=wan}

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], simtj and 184 guests