Community discussions

MikroTik App
 
absar
just joined
Topic Author
Posts: 2
Joined: Mon Oct 28, 2019 3:13 pm

I have two Internet links. I wanted to use Link 1 first and then overflow traffic shift to Link 2.

Sat Oct 29, 2022 1:11 pm

I have two Internet links. I wanted to use Link 1 first and then overflow traffic shift to Link 2. How i can achieve. I tried load balancing but its not works in my scenario.

Regards,
Absar
 
User avatar
jvanhambelgium
Forum Veteran
Forum Veteran
Posts: 985
Joined: Thu Jul 14, 2016 9:29 pm
Location: Belgium

Re: I have two Internet links. I wanted to use Link 1 first and then overflow traffic shift to Link 2.

Sat Oct 29, 2022 1:38 pm

I don't think this is possible with Mikrotik, unless perhaps with a great deal of hacking.
Its not a SDWAN-product, where you can direct streams/flows to other WAN-links eg. if interfaces are loaded for 80% or so.
If the Wiki is correct, following choices are possible ; https://help.mikrotik.com/docs/display/ ... +Balancing
 
dfdf
newbie
Posts: 36
Joined: Wed Dec 08, 2021 3:51 pm

Re: I have two Internet links. I wanted to use Link 1 first and then overflow traffic shift to Link 2.

Fri Nov 11, 2022 9:54 pm

I suppose it's possible by means of measurements of /interface/monitor-traffic interface=wan do=route.to.link2.script
the script is not trivial at all, meaning all current connections must persist, and new connections should be made over link2.
This can be achieved by routing marks (not script) in firewall rules and routing tables.
Routing table should be manipulated correctly (by script), to allow traffic go to link2 only if overflow traffic exists for some reasonable period of time.
Connections through each link must be marked (to make same address reply possible) and maintained until they alive (via routing and connection marks).
Links reachability should be monitored by recursive routing and result of this monitoring can be obtained in script.
New connections will go through link2 (by means of routing table metrics) only if overflow occurred and drop back to link1 after overflow is gone.
Of course, measurements will be approximate, but this is what I can suggest.
:put ([/interface/monitor-traffic interface=wan as-value once]->"rx-bits-per-second");

Who is online

Users browsing this forum: No registered users and 22 guests