Page 1 of 1

what is default gateway priority

Posted: Wed Mar 14, 2018 9:29 pm
by TTTko
Dears,
i just added several gateways (VPN) to my route. Purpose - failover. I'm new with routerOS and for me that was easiest way and it work.
Question is what is prioritisation in this case and how i can change it?

Thanks for your support!

Re: what is default gateway priority

Posted: Thu Mar 15, 2018 1:34 pm
by CZFan
Are you sure this works as intended?

With this config, the first src/dst combination will route via Norway, the next via Swiss, the next via London, the....

Re: what is default gateway priority

Posted: Thu Mar 15, 2018 9:00 pm
by TTTko
It works. If i disable one of these interface, traffic start going through another.
Each time when i'm restarting route sequence of gateways changing. The same thing happens if i'm changing "check gateway" from ping to arm.
Looks like sequence of gateways somehow related to ping or something like it. Can it be?

how can i change priority for these gates? I just start torrent downloading and all vpn connections used at same time, it looks like that it is balancing between them.
60mbits download speed and cpu usage only 30% - can it be really encrypted connection aes-256cbc? it is fantastic

Re: what is default gateway priority

Posted: Thu Mar 15, 2018 9:57 pm
by JB172
how can i change priority for these gates?
You can't. It's ECMP route. (Equal Cost Multi Path route)

Re: what is default gateway priority

Posted: Fri Mar 16, 2018 11:59 am
by solar77
I seem remember reading a post somewhere, if you add the same gateway multiple times, it takes more persentage of traffic. eg. IP1, IP1, IP2, then IP1 actually takes 2/3 of the traffic.
cannot find it anywhere but worth a try?

also PCC load balancing does assigne a persentiage when load balancing;
https://wiki.mikrotik.com/wiki/Manual:PCC

if you only want to use first gateway and only use the reset when the 1st fails, then static routing entry with different distance will do. traffic will go through the gateway with shorter distance but if that fails, it start to use the next, then next.

According to
https://wiki.mikrotik.com/wiki/Manual:IP/Route

Candidate route with the lowest distance becomes an active route. If there is more than one candidate route with the same distance, selection of active route is arbitrary (except for BGP routes).

Re: what is default gateway priority

Posted: Fri Mar 16, 2018 4:34 pm
by anav
Would this work.
gateway1 - distance 1 - ping gateway
gateway2 -distance 2 - ping gateway
gateway3-distance 3 - ping gateway
gateway4 distance 4.

Thus the logic would be, use NORWAY at all times.
IF NORWAY is not available use SWISS.
IF NORWAY comes back on line use NORWAY

IF NORWAY and SWISS are not available use LONDON
IF NORWAY comes back on line use NORWAY
IF SWISS comes back on line use SWISS, unless NORWAY is back online.

and so forth..........

Re: what is default gateway priority

Posted: Fri Mar 16, 2018 4:58 pm
by Steveocee
Would this work.
gateway1 - distance 1 - ping gateway
gateway2 -distance 2 - ping gateway
gateway3-distance 3 - ping gateway
gateway4 distance 4.

Thus the logic would be, use NORWAY at all times.
IF NORWAY is not available use SWISS.
IF NORWAY comes back on line use NORWAY

IF NORWAY and SWISS are not available use LONDON
IF NORWAY comes back on line use NORWAY
IF SWISS comes back on line use SWISS, unless NORWAY is back online.

and so forth..........
That should work. Rather than balancing the traffic it is multiple failover.