Page 1 of 1

Failover newbie question

Posted: Sun Jul 31, 2011 7:04 pm
by xcalibur
Hi,

I have both a Cisco router and a 3G Netstick.
Cisco is at X.X.0.138/24
Netstick is at X.X.56.1/24
Now what I'd like to do is once the internet has been disconnected on the main line,
switch to the 3G backup.
From what I've read so far the setups were just for router failures whiles my devices are usualy ok.
I simply need an infrastructure failover, not hardware.

Is it possible to pull this off using MikroTik?

Thanks

Re: Failover newbie question

Posted: Mon Aug 01, 2011 1:46 pm
by Davis
If I understood you correctly the answer is yes.
If you have 2 upstream routers you can use MikroTik router for failover between them.
Simply set up 2 default routes - route with distance 2 through netstick and route with distance 1 and ateway-check ping to your ISP core router. Then add route to your ISP core via your ISP default gateway (set scope for this route to be less that or equal to target scope (set scope to 10)).

Re: Failover newbie question

Posted: Mon Aug 01, 2011 3:50 pm
by cbrown

Re: Failover newbie question

Posted: Mon Aug 01, 2011 4:17 pm
by JP_Wireless
Very Simple! Does this example do load balancing?

Re: Failover newbie question

Posted: Mon Aug 01, 2011 4:20 pm
by petrn
Very Simple! Does this example do load balancing?
what failover has to do with load balancing?

Re: Failover newbie question

Posted: Mon Aug 01, 2011 4:35 pm
by cbrown
Here is load balancing with failover if interesed.

http://wiki.mikrotik.com/wiki/Manual:PCC

Re: Failover newbie question

Posted: Mon Aug 01, 2011 4:59 pm
by xcalibur
If I understood you correctly the answer is yes.
If you have 2 upstream routers you can use MikroTik router for failover between them.
Simply set up 2 default routes - route with distance 2 through netstick and route with distance 1 and ateway-check ping to your ISP core router. Then add route to your ISP core via your ISP default gateway (set scope for this route to be less that or equal to target scope (set scope to 10)).
Thanks for the reply.
Just one clarification though.
My main line is connected to my Cisco router. When you say "ISP core router" you do mean this one, right? Not something that sits at my ISP's, correct?
Also, how would ping help here? Wont it check for the availability of the router (my router) itself? I need INTERNET availability monitored, not the hardware. Or am I missing something here?

Sorry if this sounds silly, I'm rather new :)

Re: Failover newbie question

Posted: Mon Aug 01, 2011 6:10 pm
by Feklar
You are correct that the check gateway function included when adding a route only checks the gateway itself, so if that is an address located directly on your Cisco and not further upstream, then it won't detect a problem further down the line.

You can use netwatch, write your own script, or use a script-less method used in the wiki.
http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting
http://wiki.mikrotik.com/wiki/Manual:Tools/Netwatch

Re: Failover newbie question

Posted: Tue Aug 02, 2011 1:53 pm
by Davis
Thanks for the reply.
Just one clarification though.
My main line is connected to my Cisco router. When you say "ISP core router" you do mean this one, right? Not something that sits at my ISP's, correct?
Also, how would ping help here? Wont it check for the availability of the router (my router) itself? I need INTERNET availability monitored, not the hardware. Or am I missing something here?

Sorry if this sounds silly, I'm rather new :)
Monitoring of ISPs core router means internet availability monitoring (it means you ping something that most likely will have internet access and that sits at your ISP or his upstream ISP). Actually you can ask your ISP an IP address you can ping to monitor internet availability and use this IP address as "ISP core router". Technically you can use any IP address here, but better use address of some ISP router (else you may run in to trouble when configuring some more advanced routing; and also this IP address won't be accessible via your backup connection).

Re: Failover newbie question

Posted: Tue Aug 06, 2013 2:37 am
by miahac
Anybody have any clues how to do this with dynamic routes?

Failover newbie question

Posted: Tue Aug 06, 2013 3:35 am
by cbrown
Do what exactly? There were a few methods talked about here.

Re: Failover newbie question

Posted: Tue Aug 06, 2013 5:24 am
by miahac
Sorry, I was not thinking of true dynamic routes like ospf when I was replying. What I was asking about was that this solution does not take into account routes assigned by dhcp. ppp etc.
I found another thread and pieced together a solution, and posted it there.

http://forum.mikrotik.com/viewtopic.php?f=2&t=34588
Do what exactly? There were a few methods talked about here.

Re: Failover newbie question

Posted: Mon Aug 26, 2013 8:31 am
by saintofinternet
Here is load balancing with failover if interesed.

http://wiki.mikrotik.com/wiki/Manual:PCC
can this PCC be achieved with 2 USB 3G dongles where the IP is going to be dynamic....?