I currently have two ISPs set up on my Mikrotik. Both providers give me a dynamic public IP. I have IP Cloud enabled so that it updates my IP when it changes. But with IP Cloud, only the IP of a single ISP that is connected on the eth1 port is updated. How can I capture the IP change of the second ISP that is on the eth2 port. Does anyone have a script for this. Thanks for any help.
You can retrieve public IP from https://api.ipify.org using fetch tool.
Add api.ipify.org into address list and create 2 disabled mangle rules to mark routing for each route which will have created address list in dst list.
In script first enable mangle rule for routing over eth1, retrieve public IP with fetch tool, disable first rule, enable second rule, use fetch tool again to retrieve public IP from eth2 and then disable second rule.
Just a proposition, didn’t try it, maybe there is a better way to achieve this…