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

PDF

BGP Route Distinguisher

Want to summarize with AI?

Log in

Overview

Explains BGP route distinguisher usage, identifying limitations and guiding users through configuration of static and automatic RDs under VRF and EVPN scenarios to support VPN route uniqueness.

A BGP Route Distinguisher (RD) is a network identifier that

  • uniquely distinguishes VPN routes to prevent conflicts,

  • enables separate route tables for different VPNs, and

  • supports scalable, secure, and efficient VPN route management.

Table 1. Feature History Table

Feature Name

Release

Description

BGP Route Distinguisher

Release 25.4.1

Introduced in this release on: Fixed Systems (8010 [ASIC: A100])(select variants only*)

*This feature is now supported on:

  • 8011-32Y8L2H2FH

  • 8011-12G12X4Y-A

  • 8011-12G12X4Y-D

BGP Route Distinguisher

Release 25.1.1

Introduced in this release on: Fixed Systems (8010 [ASIC: A100])(select variants only*)

*This feature is supported on Cisco 8011-4G24Y4H-I routers.

BGP Route Distinguisher

Release 24.4.1

Introduced in this release on: Fixed Systems (8200 [ASIC: P100], 8700 [ASIC: P100, K100])(select variants only); Modular Systems (8800 [LC ASIC: P100])(select variants only*)

*This feature is supported on:

  • 8212-48FH-M

  • 8711-32FH-M

  • 8712-MOD-M

  • 88-LC1-36EH

  • 88-LC1-12TH24FH-E

  • 88-LC1-52Y8H-EM

BGP Route Distinguisher

Release 7.0.1

You can now enhance route differentiation by uniquely identifying VPN routes, facilitating seamless integration across different networks. This feature assigns unique identifiers to VPN routes, ensuring no route conflicts and enabling efficient route filtering and management.

In network design solutions where customer equipment is dual-homed and Fast Reroute is required, such as in EVPN and BGP Prefix Independent Convergence (PIC) Edge solutions, the RD associated with each VRF must be unique per Provider Edge (PE) router. In other design scenarios, while it isn’t mandatory for the RD to be unique per PE, it is highly recommended to make it unique. This practice facilitates easier transitions to dual-homed solutions in the future.

Ensuring unique RDs significantly enhances network scalability and security by maintaining distinct route tables for separate VPNs, which prevents routing conflicts and optimizes network performance. Additionally, it simplifies routing policies, making the configuration and management of large-scale networks more efficient and reliable.

To maintain unique RDs across the network, you can configure them either as automatic or static RDs under VRF or EVPN services such as EVI, VNI, or SRv6.

You can configure RD in these formats:

  • IP:nn

    • IP is the BGP Router-ID configured on the router.

    • nn is the EVI, VNI, or SRv6, or a value selected from a pool if the default value is already in use.

  • 2B:4B

    • 2B is the two byte administrator field.

    • 4B is the four byte assigned number field.

  • 4B:2B

    • 4B is the four byte administrator field.

    • 2B is the two byte assigned number field.

The following table provides a comparison between static and automatic RD configurations in VRF and EVPN technologies.

Table 2. Comparison between static and automatic RD under VRF and EVPN

Technologies

Automatic RD

Static RD

VRF

You can configure automatic RD under VRF using the rd auto command. For more information, see Configure automatic RD under VRF.

You can configure static RD under VRF in the IP:nn, 2B:4B, and 4B:2B format. For more information, see Configure static RD under VRF.

EVPN

Cisco IOS XR software automatically assigns a unique RD to the EVPN EVI in the IP:nn format.

For example, 192.0.2.1:100.

You can configure static RD under EVPN in the IP:nn, 2B:4B, and 4B:2B format.

It is recommended to configure static RD under EVPN in the 2B:4B or 4B:2B format, as the IP:nn format may conflict with EVPN automatic RD. For more information, see Configure static RD under EVPN.


Limitations for BGP route distinguisher

These are the limitation for BGP RD:

  • When you configure static RD in IP:nn format, make sure that it doesn't conflict with the IP:nn RD automatically generated value of another EVPN service such as EVI, VNI, or SRV6 in your network.

    If the configured static RD value matches the autogenerated RD in IP:nn format for this or another service, then:

    • The Cisco IOS XR software rejects the static RD configuration in the following scenario:

      • If the EVI is configured first under a bridge-domain or xconnect and

      • then, a matching static RD is configured under the EVI.

    • Cisco IOS XR software displays a system log message and doesn't reject the static RD in the following scenario:

      • The RD is configured first under the EVI and

      • then, the EVI is associated with a bridge-domain or xconnect.

  • In a Data Center Interconnect (DCI) deployment, you must not use the same RD between the edge DCI gateway and the MPLS-VPN PE router, nor between the edge DCI gateway and the Leaf with Top of Rack (ToR) switch when you re-originate routes with a stitching route target (stitching-rt) for a specific Virtual Routing and Forwarding (VRF) instance.


Configure static RD under VRF

Perform these steps to configure static RD under VRF:

Procedure

1.

Configure a VRF to isolate routing tables and segment traffic.

Example:

Router# configure
Router(config)# vrf VRF1
2.

Configure a static RD under VRF to differentiate and isolate routes in one of the following formats:

  • IP:nn

    Router(config-vrf)# rd 192.0.2.1:100
    Router(config-vrf)# commit
  • 2B:4B

    Router(config-vrf)# rd 1:100
    Router(config-vrf)# commit
  • 4B:2B

    Router(config-vrf)# rd 65536:1
    Router(config-vrf)# commit

Configure static RD under EVPN

When you configure static RD under EVPN, use the 2B:4B or 4B:2B format, as the IP:nn format may conflict with EVPN automatic RD. For more information, see Limitations for BGP route distinguisher.

Perform these steps in the given order to configure static RD under EVPN and to prevent the conflict between static RD and automatic RD values:

Procedure

1.

Configure an EVPN EVI to isolate L2 or L3 networks.

Example:

Router# configure
Router(config)# evpn evi 100
2.

Configure a static RD under EVPN EVI to differentiate and isolate routes in one of the following formats:

  • 2B:4B

    Router(config-evpn)# rd 1:100
    Router(config-evpn)# commit
  • 4B:2B

    Router(config-evpn)# rd 65536:1
    Router(config-evpn)# commit

Configure automatic RD under VRF

Perform these steps to configure automatic RD under VRF.

Procedure

1.

Configure a VRF to isolate routing tables and segment traffic.

Example:

Router# configure
Router(config)# vrf VRF1
2.

Configure an automatic RD under the VRF to let the Cisco IOS XR software automatically assign a unique RD for differentiating and isolating routes.

Example:

Router(config-vrf)# rd auto
Router(config-vrf)# commit