BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Best-external paths

Want to summarize with AI?

Log in

Overview

Introduces the concept of best-external paths in BGP and provides guidance on configuring best-external path advertisement to optimize routing decisions.

A best-external path is a BGP route selection mechanism that

  • identifies the most optimal external path for a prefix when the current best path is internal (iBGP)

  • enables advertisement of both the best and a backup path to peers to improve redundancy, and

  • ensures internal routers are prepared with an external alternative if the primary iBGP path fails.

Selection procedure:

  1. Determine the best path from all available paths for the prefix.

  2. Remove the current best path.

  3. Remove all remaining internal paths.

  4. From the remaining paths, remove those with the same next hop as the current best path.

  5. Use the BGP best path selection algorithm on the remaining paths to identify the best-external path.

Enhancing failover with the BGP best-external path feature

When a router’s optimal path to a prefix comes from an iBGP peer, the router activates the best-external path feature to select and advertise the next best eBGP route to its internal peers. This function allows internal routers to promptly switch to a valid external route if the iBGP path becomes unavailable. As a result, the network avoids delays due to full path recalculation.


Configure best-external path advertisement

Enable the router to advertise the best-external BGP paths for a specific address family.

Before you begin

  • Know your BGP autonomous system (AS) number.

Follow this step to configure best-external path advertisement:

Procedure

Enter global configuration mode, and enable best-external path advertisement.

Example:

Router(config)# router bgp 100
Router(config-bgp)# address-family l2vpn vpls-vpws
Router(config-bgp-af)# advertise best-external