Community discussions

MikroTik App
 
User avatar
arthurmitch
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Mon Jan 31, 2011 3:02 pm
Location: South Africa
Contact:

failover rule

Tue Aug 30, 2011 9:25 am

can some one plz send me an example on how to do a script that changes the route cost when there is no wan connection avalible on a certain interface so the other one will take over and be used until the primary is back online
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: failover rule

Tue Aug 30, 2011 10:59 am

if you want to use other link only when first one is down you can simply add another route with higher cost. and on the first one set up check-gateway=ping (or arp)
 
User avatar
arthurmitch
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Mon Jan 31, 2011 3:02 pm
Location: South Africa
Contact:

Re: failover rule

Wed Aug 31, 2011 11:31 am

yes that would be the case but im running load balancing pcc with three wan connections and if the cost changes it keeps on working it only stops working when the route is disabled
 
User avatar
peterd
newbie
Posts: 46
Joined: Mon Nov 05, 2007 1:23 pm

Re: failover rule

Wed Aug 31, 2011 11:39 am