To configure multiple routing instances of OSPF
or OSPFv3, perform the following tasks:
Configure the OSPF or OSPFv3 default instance
at the [edit protocols (ospf | ospf3)] and [edit logical-systems logical-system-name protocols (ospf | ospf3)] hierarchy
levels with the statements needed for your network so that routes
are installed in inet.0 and in the forwarding table. Make
sure to include the routing table group.
Configure an OSPF or OSPFv3 routing instance for
each additional OSPF or OSPFv3 routing entity, configuring the following:
Interfaces
Routing options
OSPF protocol statements belonging to that entity
Routing table group
Configure a routing table group to install
routes from the default route table, inet.0, into a routing
instance’s route table.
Configure a routing table group to install routes
from a routing instance into the default route table, inet.0.
Note:
Nonforwarding routing instances do not have forwarding
tables that correspond to their routing tables.
Create an export policy to export routes with a
specific tag and to use that tag to export routes back into the instances.
For more information, see the JUNOS Policy Framework Configuration Guide.