Auto Export Understanding
Auto Export Understanding
Modified: 2015-11-30
ii
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Auto Export Feature Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Example: Configuring and Verifying the Auto Export Feature . . . . . . . . . . . . . . . . . . 2
iii
iv
Introduction
This document describes the Auto Export feature and how it can be configured to
overcome the limitation of local prefix leaking and automatically export routes between
local VPN routing and forwarding (VRF) routing instances.
Requirements on page 2
Configuration on page 3
Verification on page 7
Requirements
This example uses the following hardware and software components:
Two Juniper Networks SRX Series Services Gateways, J Series Services Routers, M
Series Multiservice Edge Routers, MX Series 3D Universal Edge Routers, or T Series
Core Routers
NOTE: This configuration example has been tested using the software release
listed and is assumed to work on all later releases.
The Common Services and Management VRF routing instances are attached only to
the local PE router, Router PE2.
The Customer 2 VRF routing instance acts as the control VRF routing instance to
illustrate the effect of the auto-export statement on any VRF routing instance that
does not use custom policies.
Table 1 on page 2 shows the VRF routing instances and address spaces that are used
in this example.
VRF Name
VRF Notation
Common Services
cs-vrf
Management
mgmt-vrf
Customer 1
cust-vrf
Guide :
VRF Notation
Customer 2
cust2-vrf
Figure 1: Layer 3 VPN Example for Demonstrating the Auto Export Feature
Configuration
To configure the Auto Export feature, perform these tasks:
Configure the Common Services VRF routing instance (cs-vrf) and assign it to the
10.50.1.0/24 network.
[edit routing-instances]
user@PE2# set cs-vrf instance-type vrf
user@PE2# set cs-vrf interface ge-0/0/0.50
user@PE2# set cs-vrf route-distinguisher 10.3.3.3:50
user@PE2# set cs-vrf vrf-target target:65000:50
user@PE2# set cs-vrf vrf-table-label
2.
Configure the Customer 1 VRF routing instance (cust-vrf) and assign it to the
10.70.1.0/24 network.
[edit routing-instances]
user@PE2# set cust-vrf instance-type vrf
user@PE2# set cust-vrf interface ge-0/0/0.70
user@PE2# set cust-vrf route-distinguisher 10.3.3.3:70
user@PE2# set cust-vrf vrf-import cust-vrf-import
user@PE2# set cust-vrf vrf-export cust-vrf-export
user@PE2# set cust-vrf vrf-table-label
3.
Configure the Customer 2 VRF routing instance (cust2-vrf) and assign it to the
10.80.1.0/24 network.
[edit routing-instances]
user@PE2# set cust2-vrf instance-type vrf
user@PE2# set cust2-vrf interface ge-0/0/0.80
user@PE2# set cust2-vrf route-distinguisher 10.3.3.3:80
user@PE2# set cust2-vrf vrf-target target:65000:80
user@PE2# set cust2-vrf vrf-table-label
4.
Configure the Management VRF routing instance (mgmt-vrf) and assign it to the
10.60.1.0/24 network.
[edit routing-instances]
user@PE2# set mgmt-vrf instance-type vrf
user@PE2# set mgmt-vrf interface ge-0/0/0.60
user@PE2# set mgmt-vrf route-distinguisher 10.3.3.3:60
user@PE2# set mgmt-vrf vrf-target target:65000:60
user@PE2# set mgmt-vrf vrf-table-label
5.
6.
7.
Guide :
Configure the Customer 1 VRF routing instance (cust-vrf) and assign it to the
10.70.2.0/24 network.
[edit routing-instances]
user@PE1# set cust-vrf instance-type vrf
user@PE1# set cust-vrf interface ge-0/0/0.70
user@PE1# set cust-vrf route-distinguisher 10.2.2.2:70
user@PE1# set cust-vrf vrf-import cust-vrf-import
user@PE1# set cust-vrf vrf-export cust-vrf-export
user@PE1# set cust-vrf vrf-table-label
2.
Configure the Customer 2 VRF routing instance (cust2-vrf) and assign it to the
10.80.2.0/24 network.
The Customer 2 VRF routing instance uses the vrf-target statement to eliminate
having to apply a custom policy.
[edit routing-instances]
user@PE1# set cust2-vrf instance-type vrf
user@PE1# set cust2-vrf interface ge-0/0/0.80
user@PE1# set cust2-vrf route-distinguisher 10.2.2.2:80
user@PE1# set cust2-vrf vrf-target target:65000:80
user@PE1# set cust2-vrf vrf-table-label
3.
4.
5.
Prior to enabling the Auto Export feature on Router PE2, Router PE1 has the Common
Services and Management VRF VPN prefixes in the Customer 1 VRF routing tables and
Router PE2 does not.
To verify that Router PE1 has the Common Services and Management VRF VPN prefixes
in the Customer 1 VRF routing tables and Router PE2 does not:
1.
On Router PE2, display the routing table for the cust-vrf routing instance by using
the show route table cust-vrf.inet.0 command.
Notice that only the Customer 1 routes are in the routing table. No prefix leaking has
taken place.
user@PE2> show route table cust-vrf.inet.0
cust-vrf.inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.70.1.0/24
10.70.2.0/24
10.70.2.1/32
2.
On Router PE1, display the routing table for the cust-vrf routing instance by using
the show route table cust-vrf.inet.0 command.
Notice that Common Services and Management VRF prefixes have leaked into the
routing table.
user@PE1> show route table cust-vrf.inet.0
cust-vrf.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.50.2.0/24
10.60.2.0/24
10.70.1.0/24
10.70.1.1/32
10.70.2.0/24
The Common Services (cs-vrf) route prefixes and the Management (mgmt-vrf)
route prefixes have leaked into the Customer 1 VRF routing table because the custom
policy (cust-vrf-import) is applied on Router PE1. This leaking of prefixes has not
taken place on Router PE2.
Guide :
Results
This indicates that prefix leaking takes place on remote PE routers and not on local PE
routers. The Auto Export feature enables local prefix leaking.
2.
3.
4.
Results
The Auto Export feature is now applied to the local PE router, which causes the local
VRF route prefixes to leak into the local customer VRF.
Verification
Verifying Route Leaking
Purpose
To verify that the Auto Export feature enables automatic leaking of route prefixes between
locally configured VRF routing instances on a PE router.
Action
Verify the Auto Export feature by viewing the Customer 1 VRF routes on Routers PE2 and
PE1.
To confirm that the configuration is working properly:
1.
On Router PE2, display the routing table for the cust-vrf routing instance by using the
show route table cust-vrf.inet.0 statement.
user@PE2> show route table cust-vrf.inet.0
cust-vrf.inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.50.2.0/24
10.50.2.1/32
10.60.2.0/24
10.60.2.1/32
*[Direct/0] 00:00:06
> via ge-0/0/0.50
*[Local/0] 00:00:06
Local via ge-0/0/0.50
*[Direct/0] 00:00:06
> via ge-0/0/0.60
*[Local/0] 00:00:06
Local via ge-0/0/0.60
10.70.1.0/24
10.70.2.0/24
10.70.2.1/32
The lines of output that start with 10.50.2.0/24 and 10.50.2.1/32 show that Common
Services route prefixes have leaked into the Customer 1 VRF routing table. The lines
of output that start with 10.60.2.0/24 and 10.60.2.1/32 show that Management route
prefixes have leaked into the Customer 1 VRF routing table.
2. On Router PE1, display the routing table for the cust-vrf routing instance by using the
10.60.2.0/24
10.70.1.0/24
10.70.1.1/32
10.70.2.0/24
The Customer 1 VRF routing table entries on Router PE1 are unchanged.
Meaning
On applying the Auto Export feature on Router PE2, the Common Services and
Management VRF prefixes are copied into the Customer 1 VRF routing table on Router
PE2. The Customer 1 VRF routing table entries on Router PE1 are unchanged.
Thus, the Auto Export feature helps local prefix leaking.
Related
Documentation
auto-export