Playing around trying to determine the LAN gateway, I stumbled across something weird. Imagine ether1-gateway connected to the LAN, and ether3-local-slave connected to another device that acts as a backup gateway.
Run this script :
while (true) do={
:put [/ip route get number=0 gateway]
:delay 3
};
then pull the plug on ether1-gateway. The info displayed will not reflect the new gateway unless you do an
/ip route print
in between !
Similar : Create a new script from Winbox, say this is item 4. When from console you do :
/system script edit 4 source, you get a no such item, unless you perform a /system script print first. Am I missing something ?