Infrastructure
Under default best-path rules, three valid eBGP paths have equal weight, AS_PATH length, and origin: A has local preference 200, neighboring AS 65100, MED 10, and next-hop IGP cost 30; B has local preference 200, neighboring AS 65200, MED 100, and next-hop IGP cost 10; C has local preference 100, neighboring AS 65300, MED 0, and next-hop IGP cost 5. Which path wins?
Show the answer
Correct answerB. Path B, because its next-hop cost breaks the remaining tie
AWhy not this: BGP prefers higher local preference, so C is eliminated.
BWhy this is right: A and B survive local-preference comparison; their MEDs are not compared, so B wins on lower next-hop IGP cost.
CWhy not this: C loses on local preference before next-hop IGP cost is considered.
DWhy not this: The MEDs are not compared by default because A and B come from different neighboring autonomous systems.
Local preference eliminates C. By default, BGP does not compare MEDs between paths from different neighboring autonomous systems, so B beats A on next-hop IGP cost. A's lower MED does not decide this comparison.