Hello,
Is it possible to change between two gateway ip’s twice a day.
For example:
08:00 (must run on gateway 10.1.120.1)
17:00 (must run on gateway 10.1.120.2)
Please could someone help me with scripts to do this for me?
Thanks.
Hello,
Is it possible to change between two gateway ip’s twice a day.
For example:
08:00 (must run on gateway 10.1.120.1)
17:00 (must run on gateway 10.1.120.2)
Please could someone help me with scripts to do this for me?
Thanks.
first make comment for that two gateway:
(10.1.120.1)=“gateway-1”
(10.1.120.2)=“gateway-2”
second, put on /system scheduler (script on time 08:00:00, interval 1d) to run “gateway-1”
/ip route enable [/ip route find comment=“gateway-1”]
/ip route disable [/ip route find comment=“gateway-2”]
third, put on /system scheduler (script on time 17:00:00 interval 1d) to run “gateway-2”
/ip route disable [/ip route find comment=“gateway-1”]
/ip route enable [/ip route find comment=“gateway-2”]
hope can help ![]()