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.
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/ROS/pages/8323193/Bonding. If you plan to use the routers at two different locations, set up two EoIP tunnels for bonding.
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.