Community discussions

MikroTik App
 
TTTko
just joined
Topic Author
Posts: 3
Joined: Mon Mar 12, 2018 7:19 pm

what is default gateway priority

Wed Mar 14, 2018 9:29 pm

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!
You do not have the required permissions to view the files attached to this post.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: what is default gateway priority

Thu Mar 15, 2018 1:34 pm

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....
 
TTTko
just joined
Topic Author
Posts: 3
Joined: Mon Mar 12, 2018 7:19 pm

Re: what is default gateway priority

Thu Mar 15, 2018 9:00 pm

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
You do not have the required permissions to view the files attached to this post.
Last edited by TTTko on Thu Mar 15, 2018 9:20 pm, edited 1 time in total.
 
JB172
Member
Member
Posts: 304
Joined: Fri Jul 24, 2015 3:12 pm
Location: AWMN

Re: what is default gateway priority

Thu Mar 15, 2018 9:57 pm

how can i change priority for these gates?
You can't. It's ECMP route. (Equal Cost Multi Path route)
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: what is default gateway priority

Fri Mar 16, 2018 11:59 am

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).
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22041
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: what is default gateway priority

Fri Mar 16, 2018 4:34 pm

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..........
 
User avatar
Steveocee
Forum Guru
Forum Guru
Posts: 1198
Joined: Tue Jul 21, 2015 10:09 pm
Location: UK
Contact:

Re: what is default gateway priority

Fri Mar 16, 2018 4:58 pm

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.

Who is online

Users browsing this forum: No registered users and 37 guests