10 mins read

BGP – Inter-AS Option A

1. Intro

BGP Option A is one of the methods for implementing Inter-AS MPLS L3VPNs (VPNs spanning multiple Autonomous Systems). It is the simplest and most isolated of the three common options (A, B, and C).

Find next the Test Topology :

Inter-AS Option A

Our aim is to advertise the 192.45.6.1/32 prefix all the way to R7. To achieve this we will just configure back to back VRFs as follows.

2. Basic Config

This is enough to get the prefix to R7.

2. BGP Route Target problem

We see a problem on R7. the prefix from R1 will end up in two different VRFs on R7: Cust-A and Cust-RED:

Often times, the Inter-AS Option A interconnect is configured between two MPLS domains under a different administration. Most likely the two domains will not have consistent Router target assignments, hence we can have overlapping problems with the assigned Route Targets that by default will pass from one side to the other.

In our example, we have the following assignments:

  • Service Provider 1: Cust-A -> target:64512:456
  • Service Provider 2: Cust-A -> target:64512:444
  • Service Provider 2: Cust-RED -> target:64512:456

Service Provider 1 is using target:64512:456 for Cust-A, whereas Service Provider 2 is using the same for Cust-RED.

As per configuration above, R1 will add the 64512:456 and target:64512:456 communities, and R5 will add target:64512:444.

This is how R7 get’s the prefix with two route target communities. The solution is to remove all BGP communies on the Inter-AS Option A interconnect.

3. Remove BGP communities

To remove all communities, we will use community CM-ALL members *:*:

BGP community wildcard “*:*” wildcard delete both Standard and Route Target communities.

Let’s assume we only want to remove all Route Target communities, but keep the Standard Community. In this case we will use the “target:*:*” wildcard:

For completeness, if we want to remove all the standard communities, but keep the Route Targets, then the wildcard is “^[0-9]+:*

Note: We encounter this problem with BGP communities only when we are using BGP between the two AS domains. You will not have this problem when using static routing or some IGP.


External Resources:

Leave a Reply