Community discussions

MikroTik App
 
sgiglio
just joined
Topic Author
Posts: 3
Joined: Thu Sep 15, 2022 5:57 pm

bgp multihomed load sharing  [SOLVED]

Thu Sep 15, 2022 6:00 pm

Greetings,
I am implementing a solution with 4 routers connected to each other in iBGP and EBGP.
Specifically, I would like that:

Networks 11.11.11.0/24 and 12.12.12.0/24 behind router R2 arrive via eBGP on the LAN network of router R1 (10.10.10.0/24) as follows:


11.11.11.0/24 through R3
12.12.12.0/24 through R4


In case of failure of one of the two LTE routers, the network (11.11.11.0 or 12.12.12.0) must automatically pass through the router that remained active (R3 or R4)


I tried with the routing filter configuration on R2 to R1 by modifying the MED.


The incoming traffic works correctly and returns divided, I see that the 11.11.11.0/24 network from the R3 router while the 12.12.12.0/24 returns from the R4 router.


The problem is outgoing,

BGP route on router R2 automatically sets the default route to a single router (R3 or R2) and not to both (correct), but if I configure the mangles I can make both routes to the 10.10.10.0/24 destination (LAN of R1); a pass-through for R3 with source 11.11.11.0 and a pass-through for R4 with source 12.12.12.0.
Everything works perfectly, but when I disconnect one of the two routers (R3 or R4) one of the two networks of R2 no longer reaches the 10.10.10.0/24 network
I noticed that the problem is the prefixes configured to use the mangle and therefore consequently from the R3 and R4 routers only the single networks are allowed as they started from R2 with the mangle prerouting.

Can anyone help me, even with another method, to make sure that I have a multihomed BGP with load sharing and failover? where the traffic coming from one lan of R2 goes through R3 and the other network of R2 goes through R4?

PS: R3-R4 and R1 routers are in IBGP while router R2 to R3 and R4 communicate with EBGP
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 9 guests