Change IP adddress on WLAN interface

Hello,

I need script to change wlan IP address from 192.168.01.10 to 192.168.01.254 every hour.

Thank You

Hi,

What happens if it is changed to 1.254?

Does it need to change back to 1.10 after that hour?

if you create 2 scripts with the following code it should work.

lets call the 2 script change IP1 and IP2


/ip address set [ip address number] address=192.168.1.254



/ip address set [ip address number] address=192.168.110

Create 2 schedulers to run the scripts in a 2hr interval.


 system scheduler add name=IP1 start-time=01:00:00 interval=02:00:00 on-event="/system script run IP1"



 system scheduler add name=IP1 start-time=02:00:00 interval=02:00:00 on-event="/system script run IP2"

And set the start time of the second one 1 hr ahead of the first one.

It should do what you need.

This is only quick and dirty.