By changing the configuration format of interinstance export policies, JUNOS Release 5.4 software makes it easier to share routes between VRF instances, other types of instances (such as nonforwarding instances), and IGPs.
VRF instances can share routes with the auto-export statement. When you configure auto-export, the vrf-import and vrf-export policies are compared across all VRF instances. If there is a common route target community between the instances, the routes are shared.
For VRF instances, such as overlapping VPNs, the basic hierarchy levels for auto-export are as follows:
- [edit]
- routing-instances {
-
-
instance-name {
-
- routing-options {
- auto-export;
- }
- }
- }
For nonforwarding instances, routes are imported into the instance so routing protocols can announce them. For more information, see Configuring Nonforwarding Instances.
A third option for interinstance export is using an Interior Gateway Protocol (IGP), such as Open Shortest Path First (OSPF) or Intermediate System-to-Intermediate System (IS-IS). An example of the hierarchy used for IGP import and export is listed below.
- [edit]
- routing-options {
-
instance-import;
-
instance-export;
-
-
auto-export {
- (enable | disable);
-
- family inet {
-
- unicast {
- (enable | disable);
- rib-group;
- }
-
- multicast {
- (enable | disable);
- rib-group;
- }
- }
- }
- }
When configuring interinstance route sharing, keep this information in mind:
To save time when configuring interinstance parameters on multiple instances, you can configure auto-export to be the default behavior for all your routing instances by means of a configuration group.
- [edit]
- groups {
-
- vrf-export-on {
-
- routing-instances {
-
- routing-options {
- auto-export;
- }
- }
- }
- }
At the desired hierarchy level, you apply the configuration group and all members of the group receive the same policy:
- apply-groups vrf-export-on;