- interface interface-name {
- disable;
-
authentication key <key-id identifier>;
-
- bfd-liveness-detection {
-
- detection-time {
- threshold milliseconds;
- }
- minimum-interval milliseconds;
- minimum-receive-interval milliseconds;
-
- transmit-interval {
- threshold milliseconds;
- minimum-interval milliseconds;
- }
- multiplier number;
- }
-
dead-interval seconds;
- demand-circuit;
-
hello-interval seconds;
- ipsec-sa name;
-
interface-type type;
-
- ldp-synchronization {
- disable;
- hold-time seconds;
- }
-
metric metric;
-
neighbor address <eligible>;
-
passive;
-
poll-interval seconds;
-
priority number;
-
retransmit-interval seconds;
- te-metric metric;
-
-
topology (ipv4-multicast
| name) {
- metric metric;
- }
-
transit-delay seconds;
-
transmit-interval seconds;
- }
- [edit logical-systems logical-system-name protocols (ospf | ospf3) area area-id],
- [edit logical-systems logical-system-name protocols ospf3 realm (ipv4-unicast
| ipv4-multicast | ipv6-multicast) area area-id],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
(ospf | ospf3) area area-id],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
ospf3 realm (ipv4-unicast | ipv4-multicast
| ipv6-multicast) area area-id],
- [edit protocols (ospf | ospf3) area area-id],
- [edit protocols ospf3 realm (ipv4-unicast | ipv4-multicast | ipv6-multicast) area area-id],
- [edit routing-instances routing-instance-name protocols (ospf | ospf3) area area-id],
- [edit routing-instances routing-instance-name protocols ospf3 realm (ipv4-unicast
| ipv4-multicast | ipv6-multicast) area area-id]
Statement introduced before JUNOS Release 7.4.
Support for the topology statement introduced in JUNOS Release 9.0.
Support for the realm statement introduced in JUNOS Release 9.2.
Enable OSPF routing on a router interface.
You must include at least one interface statement in the configuration to enable OSPF on the router.
interface-name—Name of the interface. To configure all interfaces, you can specify all. For details about specifying interfaces, see interface naming in the JUNOS Network Interfaces Configuration Guide.
![]() |
Note: For nonbroadcast interfaces, specify the IP address of the nonbroadcast interface as interface-name. |
The remaining statements are explained separately.
See Minimum OSPF Configuration, Configuring an Interface on a Broadcast or Point-to-Point Network, Configuring Interface Properties for MT-OSPF, and Configuring Multiple Address Families for OSPFv3.
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.