6 mins read

L3VPN – auto-export

1. Intro

The auto-export statement enables you to leak routes between VRF instances that are locally configured on a PE router. Auto export is always applied on the local PE router, because it applies to only local prefix leaking by evaluating the export policy of each VRF and determining which route targets can be leaked. In contrast, remote PE prefix leaking which works by default with the standard VRF import and export policies).

To enable auto-export functionality, you need to configure auto-export on both export and import routing instance to leak routes from export routing instance to import routing instance.

We recommend you to consider your design requirements because when you add auto-export on the import routing instance, the import routing instance also exports its own routes to other routing instance with same import route-targets (RT), which may lead to unwanted route leaks. To prevent unwanted route leaks, use the VRF import and export policies to manipulate route-targets attached to the routes.

We will use the following topology to configure and test the auto-export feature. R1 and R8 are our PEs for the two L3VPNs that will exchange prefixes. The core network was already fully configured (MPLS, MP-BGP, etc), so we will ignore all of this. We will go straight to our L3VPNs and configure them to locally exchange prefixes:

The initial config:

2. Configuration

We will update our VRF policies for route leaking:

To conclude, as the documentation is saying, we need to configure auto-export on both VRF to make it work.


External Resources:

Leave a Reply