2

I have One Mikrotik router running router OS v6.1. I have One ISP connected to it but i recently got another ISP as backup. I want to connect the second ISP to the router in such a way that if the first ISP fails, the second one will kick in immediately. The link from both ISPs are ethernet links> Does anybody have any idea how to do this ?.

closed as off-topic by Ron Maupin Aug 9 '17 at 23:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "NE is a site for to ask and provide answers about professionally managed networks in a business environment. Your question falls outside the areas our community decided are on topic. Please visit the help center for more details. If you disagree with this closure, please ask on Network Engineering Meta." – Ron Maupin
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    Have you sen this mikrotik wiki entry? – Mike Pennington Apr 4 '14 at 17:44
  • Are you hosting any sites? Do you own any public IP space? – Avery Abbott Apr 10 '14 at 21:01
  • @Avery, No, I just have an application server that branches connect to. Yes i have a /29 class c address from both ISPs. I already solved this problem. It wasnt that difficult to figure out once i went into the Mikrotik router. I just configured 2 static routes with different admin distances. The main ISP with a lower admin distance and a ping check on it so that once it goes down, the second ISP kicks in. Thanks for your concern though. – dennix2014 Apr 12 '14 at 8:52
4

It wasnt that difficult to figure out once i went into the Mikrotik router. I just configured 2 static routes pointing towards the ISPs with different administrative distances. The main ISP with a lower administrative distance and a ping check on it so that once it goes down, the second ISP kicks in. To this, i logged into the Mikrotik router with winbox and went to IP tab. I chose routes from the drop down menu. The rest was self explanatory. After configuring it, i pulled the cable from ISP1 and PCs on the LAN were still able to surf the internet. I ran a tracert 4.2.2.2 which returned the backup ISP's router. I plugged the cable from ISP1 back into the router and immediately ran a tracer 4.2.2.2 which returned ISP1's router. Thanks everybody for your help.

  • It's working, but if primary ISP lost internet it can keep link and active gateway, so soute over secondary ISP not activated. For smarter routes switching is better to use script and sheduler or netwatch. – mmv-ru Jul 15 '14 at 15:29
  • @mmv-ru, it happens like u said - at times if the default gateway is still reachable but internet is down at the isp end, router wont switch to the second gateway. I really dont know much about script, scheduler and netwatch. – dennix2014 Jul 17 '14 at 8:25
  • its too long to make soficticated reply, because there no one perfect solution. Try start from wiki.mikrotik.com/wiki/Failover_via_Netwatch_III_%28English%29 and wiki.mikrotik.com/wiki/Failover_Scripting – mmv-ru Jul 20 '14 at 16:04
0

it was my problem too. you should create tow static route: one of them referred to ISP1 and another to ISP2 , but ISP1's distance is 1 and ISP2's distance is 2. in this situation all client go out through ISP1 and if ISP1 is failed it is transferred to ISP2 . I wish you good luck.

  • depends on how it fails. if the link is still up, it hasn't "failed". You'd have to setup some sort of health monitor to detect when the gateway is unreachable. – Ricky Beam Jan 28 '15 at 20:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.