Community discussions

MikroTik App
 
alikemalhalil
just joined
Topic Author
Posts: 3
Joined: Fri Feb 02, 2024 10:28 am

ospf not doing load balancing

Sat Feb 01, 2025 10:59 pm

Hello

Two Mikrotik routers are connected to each other via cables via ports 1 and 2. I want to include OSPF in both routers and have equal data flow on both ports. However, data only flows through one port. If there is a problem with the current port, it flows to the other port.

Can you help me regarding the subject?
Ekran Alıntısı.JPG
You do not have the required permissions to view the files attached to this post.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1865
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: ospf not doing load balancing

Sun Feb 02, 2025 9:33 am

Unfortunately, OSPF does not perform load balancing by itself; it only sets up routes in the routing table. Instead, you can use bonding, which is explained here: https://help.mikrotik.com/docs/spaces/R ... 93/Bonding. If you plan to use the routers at two different locations, set up two EoIP tunnels for bonding.
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1404
Joined: Tue Jun 23, 2015 2:35 pm

Re: ospf not doing load balancing

Tue Feb 04, 2025 5:37 am

 
jonah1810
Member Candidate
Member Candidate
Posts: 105
Joined: Tue Jul 30, 2019 10:19 pm

Re: ospf not doing load balancing

Sun Mar 09, 2025 9:43 pm

OSPF May not load balance by itself but routes with equal cost use ECMP. if you have same cost on both interfaces on both sides of your ptp ospf link it should set up two ecmp routes (denoted by a "+" Flag) and will use ECMP load balancing, you can then do uneven load balancing by creating multiple virtual interfaces on each real interface and use ospf on the vlans.
Ie.
Ether 1 has 1 vlans (each with a cost of 10)
Ether 2 has 3 vlans(each with a cost of 10)
there will be roughly 1:3 traffic split across ether 1 to ether2.

ECMP

https://wiki.mikrotik.com/Manual:IP/Rou ... MP)_routes