Using RT Constraint Routes

In general (ignoring IBGP-to-IBGP rules, Add-Path, Best-external, etc.), the best VPN route for every prefix/NLRI in the RIB is sent to every peer supporting the VPN address family, but export policies may be used to prevent some prefix/NLRI from being advertised to specific peers. These export policies may be configured statically or created dynamically based on use of ORF or RT constraint with a peer. ORF and RT Constraint are mutually exclusive on a session.

When RT Constraint is configured on a session that also supports VPN address families using route targets (that is: vpn-ipv4, vpn-ipv6, l2-vpn, mvpn-ipv4, mvpn-ipv6, mcast-vpn-ipv4 or evpn), the advertisement of the VPN routes is affected as follows:

In this context, a default RTC route is any of the following:

  1. a route with NLRI length = zero

  2. a route with NLRI value = origin AS and NLRI length = 32

  3. a route with NLRI value = {origin AS+0x0002 | origin AS+0x0102 | origin AS+0x0202} and NLRI length = 48

    • If an RTC route for prefix A (origin-AS = A1, RT = A2/n, n > 48) is received from an IBGP peer I1 in autonomous system A1, the VPN routes that are advertised to I1 is the set that:

      1. are eligible for advertisement to I1 per BGP route advertisement rules AND

      2. have not been rejected by manually configured export policies AND

      3. carry at least one route target extended community with value A2 in the n most significant bits AND

      4. have not been advertised to the peer

      Note:

      This applies whether or not I1 advertised the best route for A.

    • If the best RTC route for a prefix A (origin-AS = A1, RT = A2/n, n > 48) is received from an IBGP peer I1 in autonomous system B, the VPN routes that are advertised to I1 is the set that:

      1. are eligible for advertisement to I1 per BGP route advertisement rules AND

      2. have not been rejected by manually configured export policies AND

      3. carry at least one route target extended community with value A2 in the n most significant bits AND

      4. have not been advertised to the peer

      Note:

      This applies only if I1 advertised the best route for A.

    • If the best RTC route for a prefix A (origin-AS = A1, RT = A2/n, n > 48) is received from an EBGP peer E1, the VPN routes that are advertised to E1 is the set that:

      1. are eligible for advertisement to E1 per BGP route advertisement rules AND

      2. have not been rejected by manually configured export policies AN

      3. carry at least one route target extended community with value A2 in the n most significant bits AND

      4. have not been advertised to the peer

      Note:

      This applies only if E1 advertised the best route for A.