Dear all,
I am confused by the answer to the following question:
Given the following network configuration:
And the following BGP decision process:
- Shortest AS-PATH
- E-BGP is preferred over I-BGP
- Shortest path to NEXT-HOP, according to IGP
- Lowest BGP identifier is preferred (e.g. A1 is preferred over A2)
B2 received two routes to 4001:1::/32, one from B3 (NEXT-HOP=c2e) and one from B4 (NEXT-HOP=c1e). Part of the given answer is "...the other one, obtained from B4 is ranked equally but has a larger BGP identifier..". If I understand correctly, the cost to go from B2 to B4 is always higher than that of B2 to B3. In this case, shouldn't B2 choose the route via B3 because it is the shortest path to NEXT-HOP according to IGP (i.e. OSPF that runs Dijkstra)?
Thank you very much for your time to answer my question.
Kind regards,
Paulina