- Cisco BGP Overview
- BGP 4
- Configuring a Basic BGP Network
- BGP Support for 4-byte ASN
- IPv6 Routing: Multiprotocol BGP Extensions for IPv6
- IPv6 Routing: Multiprotocol BGP Link-Local Address Peering
- IPv6 Multicast Address Family Support for Multiprotocol BGP
- Connecting to a Service Provider Using External BGP
- BGP Named Community Lists
- BGP Prefix-Based Outbound Route Filtering
- BGP Route-Map Continue Support for Outbound Policy
- Removing Private AS Numbers from the AS Path in BGP
- Configuring BGP Neighbor Session Options
- BGP Neighbor Policy
- BGP Dynamic Neighbors
- BGP Support for Next-Hop Address Tracking
- BGP Restart Neighbor Session After Max-Prefix Limit Reached
- BGP Support for Dual AS Configuration for Network AS Migrations
- Configuring Internal BGP Features
- BGP VPLS Auto Discovery Support on Route Reflector
- BGP NSF Awareness
- IPv6 NSF and Graceful Restart for MP-BGP IPv6 Address Family
- BGP Support for BFD
- BGP Support for MTR
- BGP Link Bandwidth
- iBGP Multipath Load Sharing
- BGP Multipath Load Sharing for Both eBGP and iBGP in an MPLS-VPN
- Loadsharing IP Packets Over More Than Six Parallel Paths
- BGP Policy Accounting
- BGP Policy Accounting Output Interface Accounting
- BGP Cost Community
- BGP Support for IP Prefix Import from Global Table into a VRF Table
- BGP Support for IP Prefix Export from a VRF Table into the Global Table
- BGP per Neighbor SoO Configuration
- Per-VRF Assignment of BGP Router ID
- BGP Next Hop Unchanged
- BGP Event-Based VPN Import
- BGP Best External
- BGP PIC Edge for IP and MPLS-VPN
- Configuring BGP: RT Constrained Route Distribution
- Configuring BGP Consistency Checker
- BGP MIB Support
- Cisco-BGP-MIBv2
- BGP Additional Paths
- BGP Attribute Filter and Enhanced Attribute Error Handling
- BGP—Support for iBGP Local-AS
- BGP-Multiple Cluster IDs
- BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard
- BGP-VPN Distinguisher Attribute
- BGP-VRF-Aware Conditional Advertisement
- BGP Diverse Path Using a Diverse-Path Route Reflector
- BGP Graceful Shutdown
Contents
- BGP Best External
- Finding Feature Information
- Prerequisites for BGP Best External
- Restrictions for BGP Best External
- Information About BGP Best External
- BGP Best External Overview
- What the Best External Route Means
- BGP Best External Feature Operation
- Configuration Modes for Enabling BGP Best External
- How to Configure BGP Best External
- Configuring the BGP Best External Feature
- Verifying the BGP Best External Feature
- Configuration Examples for BGP Best External
- Example: Configuring the BGP Best External Feature
- Additional References
- Feature Information for BGP Best External
BGP Best External
The BGP Best External feature provides the network with a backup external route to avoid loss of connectivity of the primary external route. The BGP Best External feature advertises the most preferred route among those received from external neighbors as a backup route. This feature is beneficial in active-backup topologies, where service providers use routing policies that cause a border router to choose a path received over an Interior Border Gateway Protocol (iBGP) session (of another border router) as the best path for a prefix even if it has an Exterior Border Gateway Protocol (eBGP) learned path. This active-backup topology defines one exit or egress point for the prefix in the autonomous system and uses the other points as backups if the primary link or eBGP peering is unavailable. The policy causes the border router to hide the paths learned over its eBGP sessions from the autonomous system because it does not advertise any path for such prefixes. To cope with this situation, some devices advertise one externally learned path called the best external path.
- Finding Feature Information
- Prerequisites for BGP Best External
- Restrictions for BGP Best External
- Information About BGP Best External
- How to Configure BGP Best External
- Configuration Examples for BGP Best External
- Additional References
- Feature Information for BGP Best External
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information for BGP Best External.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn . An account on Cisco.com is not required.
Prerequisites for BGP Best External
The Bidirectional Forwarding Detection (BFD) protocol must be enabled to quickly detect link failures.
Ensure that the BGP and the Multiprotocol Label Switching (MPLS) network is up and running with the customer site connected to the provider site by more than one path (multihomed).
The backup path must have a unique next hop that is not the same as the next hop of the best path.
BGP must support lossless switchover between operational paths.
Restrictions for BGP Best External
The BGP Best External feature will not install a backup path if BGP Multipath is installed and a multipath exists in the BGP table. One of the multipaths automatically acts as a backup for the other paths.
The BGP Best External feature is not supported with the following features: The BGP Best External feature cannot be configured with Multicast or Layer 2 VPN (L2VPN) Virtual Routing and Forwarding address families.
The BGP Best External feature cannot be configured on route reflectors.
The BGP Best External feature does not support Nonstop Forwarding/Stateful Switchover (NSF/SSO). However, In-Service Software Upgrade (ISSU) is supported if both Route Processors have the BGP Best External feature configured.
The BGP Best External feature can be configured only on VPNv4, VPNv6, IPv4 VRF, and IPv6 VRF address families.
When you configure the BGP Best External feature using the bgp advertise-best-external command, you need not enable the BGP Prefix-Independent Convergence (PIC) feature with the bgp additional-paths install command. The BGP PIC feature is automatically enabled by the BGP Best External feature.
When you configure the BGP Best External feature, it will override the functionality of the MPLS VPN--BGP Local Convergence feature. However, you need not remove the protection local-prefixes command from the configuration.
Information About BGP Best External
BGP Best External Overview
Service providers use routing policies that cause a border router to choose a path received over an internal BGP (iBGP) session (of another border router) as the best path for a prefix even if it has an external BGP (eBGP) learned path. This practice is popularly known as active-backup topology and is done to define one exit or egress point for the prefix in the autonomous system and to use the other points as backups if the primary link or eBGP peering is unavailable.
The policy, though beneficial, causes the border router to hide the paths learned over its eBGP sessions from the autonomous system because the border router does not advertise any path for such prefixes. To cope with this situation, some devices advertise one externally learned path called the best external path. The best external behavior causes the BGP selection process to select two paths to every destination:
The best path is selected from the complete set of routes known to that destination.
The best external path is selected from the set of routes received from its external peers.
BGP advertises the best path to external peers. Instead of withdrawing the best path from its internal peers when it selects an iBGP path as the best path, BGP advertises the best external path to the internal peers.
The BGP Best External feature is an essential component of the Prefix-Independent Convergence (PIC) edge for both Internet access and Multiprotocol Label Switching (MPLS) VPN scenarios and makes alternate paths available in the network in the active-backup topology.
What the Best External Route Means
The BGP Best External feature uses a “best external route” as a backup path, which, according to draft-marques-idr-best-external, is the most preferred route among those received from external neighbors. The most preferred route from external neighbors can be the following:
Two routers in different clusters that have an Interior Border Gateway Protocol (iBGP) session between them.
Two routers in different autonomous systems of a confederation that have an External Border Gateway Protocol (eBGP) session between them.
The best external route might be different from the best route installed in the Routing Information Base (RIB). The best route could be an internal route. By allowing the best external route to be advertised and stored, in addition to the best route, networks gain faster restoration of connectivity by providing additional paths that may be used if the primary path fails.
BGP Best External Feature Operation
The BGP Best External feature is based on Internet Engineering Task Force (IETF) draft-marques-idr-best-external.txt. The BGP Best External feature advertises a best external route to its internal peers as a backup route. The backup route is stored in the RIB and Cisco Express Forwarding. If the primary path fails, the Border Gateway Protocol (BGP) Prefix-Independent Convergence (PIC) functionality enables the best external path to take over, enabling faster restoration of connectivity.
Figure 1 shows a Multiprotocol Label Switching (MPLS) VPN using the BGP Best External feature. The network includes the following components:
Exterior BGP (eBGP) sessions exist between the provider edge (PE) and customer edge (CE) routers.
PE 1 is the primary router and has a higher local preference setting.
Traffic from CE 2 uses PE 1 to reach router CE 1.
PE 1 has two paths to reach CE 1.
CE 1 is dual-homed with PE 1 and PE 2.
PE 1 is the primary path and PE 2 is the backup path.
In Figure 1 , traffic in the MPLS cloud flows through PE 1 to reach CE 1. Therefore, PE 2 uses PE 1 as the best path and PE 2 as the backup path.
PE 1 and PE 2 are configured with the BGP Best External feature. BGP computes both the best path (the PE 1-CE 1 link) and a backup path (PE 2) and installs both paths into the Routing Information Base (RIB) and Cisco Express Forwarding. The best external path (PE 2) is advertised to the peer routers, in addition to the best path.
When Cisco Express Forwarding detects a link failure on the PE 1-CE 1 link, Cisco Express Forwarding immediately switches to the backup path PE 2. Traffic is quickly rerouted due to local fast convergence in Cisco Express Forwarding using the backup path. Thus, traffic loss is minimized and fast convergence is achieved.
Configuration Modes for Enabling BGP Best External
You can enable the BGP Best External feature in different modes, each of which protects Virtual Routing and Forwarding (VRF) in its own way:
If you issue the bgp advertise-best-external command in VPNv4 address family configuration mode, it applies to all IPv4 VRFs. If you issue the command in this mode, you need not issue it for specific VRFs.
If you issue the bgp advertise-best-external command in IPv4 address family configuration mode, it applies only to that VRF.
How to Configure BGP Best External
Configuring the BGP Best External Feature
Perform the following task to configure the BGP Best External feature. This task shows how to configure the BGP Best External feature in either an IPv4 or VPNv4 address family. In VPNv4 address family configuration mode, the BGP Best External feature applies to all IPv4 Virtural Routing Forwarding (VRF); you need not configure it for specific VRFs. If you issue the bgp advertise-best-external command in IPv4 VRF address family configuration mode, the BGP Best External feature applies only to that VRF.
Configure the MPLS VPN and verify that it is working properly before configuring the BGP Best External feature. See the "Configuring MPLS Layer 3 VPNs" section for more information.
Configure multiprotocol VRFs to allow you to share route-target policies (import and export) between IPv4 and IPv6 or configure separate route-target policies for IPv4 and IPv6 VPNs. For information about configuring multiprotocol VRFs, see the "MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs section".
Ensure that the customer edge (CE) router is connected to the network by at least two paths.
1.
enable
2.
configure
terminal
3.
router
bgp
autonomous-system-number
5.
bgp
advertise-best-external
6.
neighbor
ip-address
remote-as
autonomous-system-number
7.
neighbor
ip-address
activate
8.
neighbor
ip-address
fall-over
[bfd |
route-map
map-name]
9.
end
DETAILED STEPS
Verifying the BGP Best External Feature
Perform the following task to verify that the BGP Best External feature is configured correctly.
- show ip bgp vpnv4{all | rd route-distinguisher | vrf vrf-name} [rib-failure] [ip-prefix/length [longer-prefixes]] [network-address [mask] [longer-prefixes]] [cidr-only] [community] [community-list] [dampened-paths] [filter-list] [flap-statistics] [inconsistent-as] [neighbors] [paths [line]] [peer-group] [quote-regexp] [regexp] [summary] [labels]
1.
enable
2.
show
vrf
detail
3.
4.
show
bgp
vpnv4
unicast
vrf
vrf-name
ip-address
5.
show
ip
route
vrf
vrf-name
repair-paths
ip-address
6.
show
ip
cef
vrf
vrf-name
ip-address
detail
DETAILED STEPS
Configuration Examples for BGP Best External
Example: Configuring the BGP Best External Feature
The following example shows how to configure the BGP Best External feature in VPNv4 mode:
vrf definition test1 rd 400:1 route-target export 100:1 route-target export 200:1 route-target export 300:1 route-target export 400:1 route-target import 100:1 route-target import 200:1 route-target import 300:1 route-target import 400:1 address-family ipv4 exit-address-family exit ! interface Ethernet1/0 vrf forwarding test1 ip address 10.0.0.1 255.0.0.0 exit ! router bgp 64500 no synchronization bgp log-neighbor-changes neighbor 10.5.5.5 remote-as 64500 neighbor 10.5.5.5 update-source Loopback0 neighbor 10.6.6.6 remote-as 64500 neighbor 10.6.6.6 update-source Loopback0 no auto-summary ! address-family vpnv4 bgp advertise-best-external neighbor 10.5.5.5 activate neighbor 10.5.5.5 send-community extended neighbor 10.6.6.6 activate neighbor 10.6.6.6 send-community extended exit-address-family ! address-family ipv4 vrf test1 no synchronization bgp recursion host neighbor 192.168.13.2 remote-as 64511 neighbor 192.168.13.2 fall-over bfd neighbor 192.168.13.2 activate neighbor 192.168.13.2 as-override exit-address-family
Additional References
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
BGP commands |
|
Basic MPLS VPNs |
“Configuring MPLS Layer 3 VPNs” module in the MPLS: Layer 3 VPNs Configuration Guide |
Multiprotocol VRFs |
“MPLS VPN VRF CLI for IPv4 and IPv6 VPNs” module in the MPLS: Layer 3 VPNs Configuration Guide |
A failover feature that creates a new path after a link or node failure |
Standards
Standard |
Title |
---|---|
draft-marques-idr-best-external |
BGP Best External, Advertisement of the best external route to iBGP |
MIBs
MIB |
MIBs Link |
---|---|
— |
To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFCs
RFC |
Title |
---|---|
RFC 1771 |
A Border Gateway Protocol 4 (BGP-4) |
RFC 2547 |
BGP/MPLS VPNs |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
Feature Information for BGP Best External
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to . An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
BGP Best External |
12.2(33)SRE 15.2(3)T 15.2(4)S 15.1(1)SY |
The BGP Best External feature provides the network with a backup external route to avoid loss of connectivity of the primary external route. This feature advertises the most preferred route among those received from external neighbors as a backup route. The following commands were introduced or modified: bgp advertise-best-external, bgp recursion host, show ip bgp, show ip bgp vpnv4, show ip cef, show ip cef vrf, show ip route, and show ip route vrf. |