Failover solutuion

Hello, I’m a new user in this forum and since Latest starting to work with Mikrotik got some crazy ideas, that need help to be developed on the network.

So for the first thing, I would need a consult, how to better perform this task.

I have 2 identical Mikrotik routers and I have 2 incoming network providers with BGP configured on Mikrotik on the 1 Router all works perfect, but now I want to connect the second router for a reason if the 1 one fails the second continues to provide all network. So what would be the best approach for this?

Since the Firewall and Network Interfaces, I already created a script, that automatically sync them between both devices. But if I will connect the ISP provider will it not create a loop, and if I will connect on both routers 5 port to switch will it also not create a loop?

What is best practice for this?

Thanks in advance.

Hi,
I am not sure about using with BGP, but in general what you are searching for is VRRP (Virtual Router Redundancy Protocol), I think. This works somehow in your way of needs - two routers, one virtual IP, inter-router communication and reachable on the network is everytime only one (they share the virtual IP) - this provides failover…
If and how is it possible with BGP I am not sure at the moment…

Regards,
Jaroslav

VRRP needs a working L2 between the routers, either done in software or a switch.

The usual procedure with two BGP providers is to connect them on different physical routers, then run iBGP between them.