Lab1 ECMP
Load unix:lab1.init.cfg
The idea behind these labs is that R6 is advertising 192.0.2.6/32 and 2001:db8::6/128. It is multi-homed to R4 and R5. We will use various techniques to achieve load balancing and failover.
This first lab requires you to configure ECMP. Currently R2 and R3 are using R4 for egress due to its lower RID. R6 is using R4 for this reason as well. Configure the fewest number of routers so that traffic from R1 to R6 is load balanced through R4 and R5, and return traffic from R6 is likewise load balanced.
Answer
https://www.youtube.com/watch?v=AJXdxembu_8&list=PL3Y9eZjZCcsejbVWD3wJIePqe3NiImqxB&index=2
Explanation
The maximum-paths feature allows multiple BGP paths to be used for load balancing if all criteria up to the IGP metric of the nexthop match. Additionally, the AS_PATH content must be the same.
Enabling ECMP for only iBGP routes is done using:
Enabling ECMP for only eBGP routes is done using:
Enabling ECMP for both iBGP and eBGP routes can be done using the following command, but can introduce loops:
Verification
On R3 we can see that it accepted the path via R5 as a multipath candidate. The path via R4 is still best, and is the one path that would be advertised to eBGP peers.
We can verify in the FIB that traffic is being load shared:
On R6, we can similarly verify outgoing traffic is load shared among R4 and R5.
The reason that we do not need to enable iBGP multipath on R2, is that it will always use R3 to get to R4 and R5, so enabling multipath does not technically achieve anything. It can be done, but the result is the same with or without it.
Last updated