I need to use Loadbalancing and failover. The problem i have is, dsl modem ip is 192.168.1.1. If the dsl isdown, the gateway ip is reachable and it will not do the failover.
Try to ping the gateway directly, not DSL modem and put static IP route for that gateway(ip) through the correct interface, so it will only transfer data throug wanted gateway. So if the gateway is down, it will switch to the next distance gateway.
Yes it is, but you are pinging the wrong IP. you are pinging the local IP of the modem/router when you should be actually pinging the DSLAM ip on the other side. Also for that IP you need a static route that goes through this gateway (DSL).
This is the domain you will use to check if you have internet. Make sure it is something that replies to pings, is always up (like google) but is not accessed by your customers (not like google).
In all the documents, it is not clear where the scripts has to apply.
Is it possible via Winbox?
It it is on CLI, do i can type directly? or type in notepad and put it in the file?
"Scripts can be stored in Script repository or can be written directly to console. The events used to trigger script execution include, but are not limited to the System Scheduler, the Traffic Monitoring Tool, and the Netwatch Tool generated events. "
And of course you can add scripts from winbox. Go to System->Script and add new scripts.
I use Netwatch to ping a IP and put the static route for the this IP via DSL.
Added one more Netwatch with different ip and put the static route for the IP via V-sat.
Whenver the IP is not reachable, it will disable the corresponding default route.
Which is exactly what my script does with the only difference that it uses 1 ip address which rotates for all gateway checks. It also checks if the modem is connect before pinging and logs all errors to a seperate log. Anyway, glad you figured it out!