Minimum OSPF Configuration

You must create a backbone area if your network consists of multiple areas. An area border router (ABR) must have at least one interface in the backbone area, or it must have a virtual link to a routing device in the backbone area. To do this, include at least the following statements. All other OSPF configuration statements are optional.

protocols {(ospf | ospf3 ) {area 0 {interface interface-name;}}}

For a list of hierarchy levels at which you can include these statements, see the statement summary sections for these statements.

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.

Note: OSPFv3 does not support routing instances.