failover connection script

Hello iam beginner and i read mikrotik manual
http://wiki.mikrotik.com/wiki/User/Mutual_internet_backup_between_two_small_ISP#Checking_if_default_gateway_is_working

i have two connections to the internet and now it works if i unplug ether1 or ether2 internet still works and priority of routes works too.

but this ‘solution’ doesnt work if ISP broke.. so i copied the script from manual and im trying to run it.. but it throw me an error

input does not match any value of routing-table

(yes i dont like it too)

here is some of my settings i hope it will helps you (and me :slight_smile:

i believe it is some dumb mistake but im not able to solve it yet :stuck_out_tongue:
please help me and be ‘most enough’ simple :slight_smile: thank you
failover_script.txt (858 Bytes)

Why is a script needed when we have check gateway?

hi i dont understand you, what do you mean ? I need a script because Route will not disable automatically if connection will broke in other link (cable at next hop for example) than my ether is connected..

edit: oh sorry you mean check-gateway command.. can you give me an example ? im not sure how it works, thank you

edit: ok i got it.. today im not able to test it but.. it can be set only in terminal right ?
i believe now it will works, thank you :slight_smile:

I’m not sure my script will help you, but in looking at what you wanted, this seems to apply.

You’re welcome to see.
See this post.
http://forum.mikrotik.com/t/netwatch-style-script/55074/1

[I was getting ready to post this, and saw your post which seemed to cover the same ground - so I thought I’d mention it.]

-Greg