Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

ospf-instance

Syntax

Hierarchy Level

Description

Enable multiple IGP instances of OSPFv2 routing on the routing device. The OSPFv2 IGP instance is associated with the default routing-instance and the default RIB. An OSPFv2 IGP instance exports routes installed in the RIB by another OSPFv2 IGP instance using standard Junos OS routing policy configuration. By default, the routes installed by different OSPFv2 IGP instances have the same route preference.

All the configuration options available under the [edit protocols ospf-instance igpinstance-name] hierarchy level are similar to the options available under the [edit protocols ospf] hierarchy level.

Note:

The ospf-instance configuration statement is not supported at the [edit routing-instances routing-instance-name protocols] hierarchy level.

Note:

Junos OS does not support configuring the same logical interface in multiple IGP instances of OSPFv2.

Starting in Junos OS and Junos OS Evolved Release 24.4R1, you can configure and run multiple independent interior gateway protocol (IGP) instances of OSPFv2 with segment routing (SR) on a router. You can create two or more OSPF instances and apply SR-MPLS on each instance. Multiple instances of OSPF can advertise different prefix-segment identifiers (prefix-SIDs). Other instances can use these SIDs for making routing decisions.

Default

OSPF is disabled on the routing device.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 24.2R1.