interface
Syntax
Hierarchy Level
Release Information
Statement introduced before JUNOS Release 7.4.
Statement introduced in JUNOS Release 9.0 for EX Series switches.
Support for the topology statement introduced in JUNOS Release 9.0.
Support for the topology statement introduced in JUNOS Release 9.0 for EX Series switches.
Support for the realm statement introduced in JUNOS Release 9.2.
Support for the realm statement introduced in JUNOS Release 9.2 for EX Series switches.
Description
Enable OSPF routing on a routing device interface.
You must include at least one interface statement in the configuration to enable OSPF on the routing device.
Options
interface-name—Name of the interface. Specify the interface by IP address or interface name for OSPFv2, or only the interface name for OSPFv3. Using both the interface name and IP address of the same interface produces an invalid configuration. To configure all interfaces, you can specify all. Specifying a particular interface and all produces an invalid configuration. 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.
![]() | Note: You cannot run both OSPF and ethernet-tcc encapsulation between two Juniper Networks routing devices. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.