To be honest, I was just saying that if you find some nice dual-WAN config you like, and it’s made with static addresses, it’s not a deal breaker, because you can use lease scripts to change config dynamically. Otherwise I don’t enjoy multi-WAN configs very much and I tend to stay away. I also don’t like RouterOS scripting, but in my defense, it didn’t like me first. ![]()
Anyway, there are different ways how to do this. You can either do what example script does and add or remove items. Or you can create static config and only mark selected items with unique comments, and then use scripts to update them (change addresses, enable or disable them). If you do that, you can get away with much simpler scripts like this (from top of my head, not tested):
:if ($bound=1) do={
/ip route set [/ip route find where comment="WAN1 route"] gateway=$"gateway-address" disabled=no
} else={
/ip route set [/ip route find where comment="WAN1 route"] disabled=yes
}
It can really help with debugging, which is the thing I hate most. I guess I’m spoiled, but any normal code will throw syntax or runtime errors and tells user where it happened. RouterOS scripting tends to just silently fail, so the shorter script is, the easier it’s to work with it, at least for me.
With that cleared up, you can check the last link I posted, it describes more reliable way how to test working connections. And try to experiment a little.
@anav: It’s not that easy. RouterOS is like LEGO, you get the basic parts and it’s up to you what you build. There can be some automated shortcuts, but there’s only limited amount of configs that could be supported in this way. And if you would need to combine them with anything extra, it could be a problem. I’m not saying that it’s impossible, maybe some nice and compatible improvements can be done, but we definitely don’t want another Quick Set that works fine by itself, but doesn’t play well with the rest, do we?