To enable OSPF on the router, you must configure OSPF on at least one of the router’s interfaces. How you configure an interface depends on whether the interface is connected to a broadcast or point-to-point network, a point-to-multipoint network, or a nonbroadcast, multiaccess network.
![]() |
Note: When you configure OSPFv2 on an interface, you must also include the family inet statement at the [edit interfaces interface-name unit logical-unit-number] hierarchy level. When you configure OSPFv3 on an interface, you must also include the family inet6 statement at the [edit interfaces interface-name unit logical-unit-number] hierarchy level. For more information about the family inet statement, see the JUNOS Network Interfaces Configuration Guide. Beginning with JUNOS Release 9.2, you can configure OSPFv3 to support address families other than unicast IPv6. For more information, see Configuring Multiple Address Families for OSPFv3. |
To configure OSPF on an interface, you can perform the following tasks: