You might need to use the auto-export statement between overlapping VPNs but require that a subset of the routes learned from a VRF table be installed into the inet.0 table or in routing-instance.inet.2.
To support this type of scenario, where not all of the information needed is present in the vrf-import and vrf-export policies, you configure an additional list of routing tables by using an additional routing table group.
To add routes from VPN-A and VPN-AB to inet.0 in the example described in Configuring Overlapping VPNs with BGP and Automatic Route Export, you need to include the following additional configuration statements:
Configure the routing options:
- [edit]
- routing-options {
-
- rib-groups {
-
- inet-access {
- import-rib inet.0;
- }
- }
- }
Configure routing instance VPN-A:
- [edit]
- routing-instances {
-
- VPN-A {
-
- routing-options {
-
- auto-export {
-
- family inet {
-
- unicast {
- rib-group inet-access;
- }
- }
- }
- }
- }
- }
Configure routing instance VPN-AB:
- [edit]
- routing-instances {
-
- VPN-AB {
-
- routing-options {
-
- auto-export {
-
- family inet {
-
- unicast {
- rib-group inet-access;
- }
- }
- }
- }
- }
- }
Routing table groups are used in this configuration differently from how they are generally used in JUNOS software. Routing table groups normally require that the exporting routing table be referenced as the primary import routing table in the routing table group. For this configuration, the restriction does not apply. The routing table group functions as an additional list of tables to which to export routes.