OSPF Interface#
Virtual Networks → OIOSPF Interfaces
Open Shortest Path First, or OSPF, is a routing protocol to exchange IP routes. There are two versions of the OSPF protocol:
- Version 2 is configured on IPv4 interfaces and only exchances IPv4 prefixes
- Version 3 is configured on IPv6 interfaces and exchanges both IPv4 and IPv6 prefixes
OSPF sessions are always established between OSPFInterfaces in an OSPFArea, and never operate inter-area. To connect two OSPF areas to each other, an area border router (ABR) configures both areas in the same OSPFInstance. An OSPFInstance is an isolated process with its own Link State Database (LSDB).
OSPF interfaces can be configured as "passive", meaning they won't actively try to establish OSPF adjacencies, nor will they respond to incoming OSPF packets. Passive OSPF interfaces are configured to advertise prefixes reachable through this interface, without participating in the OSPF topology.
To set up an OSPF interface in the default VRF, use
DefaultOSPFInterfaceinstead.
Dependencies#
To configure this resource, the following resources must exist or be created alongside the OSPFInterface
- The
RoutedInterfacethat the OSPF session will be established on - The
OSPFAreathis interface is configured in - The
OSPFInstancethis interface is configured in
Referenced resources#
RoutedInterface#
OSPF adjacencies are formed between IP addresses, and therefore require a reference to the RoutedInterface that will establish the adjacency. If the OSPFInterface is configured as "passive", no adjacency will be attempted or accepted. This is useful when the prefixes reachable through this interface should be advertised to the OSPF area (for example loopback IP addresses, static routes, ...), without actively taking part in the topology.
OSPFInstance#
An OSPF instance is an isolated process that establishes OSPF adjacencies and keeps track of all prefixes that are reachable in the OSPF areas that are part of this instance. For example, if dual-stack OSPFv2 and OSPFv3 topologies are configured, each protocol version runs in its own OSPF instance, with separate Link-State Databases (LSDB).
If the same OSPFInterface is linked to two different OSPFInstances, two OSPFInterface resources need to be created, each referencing a different OSPFInstance.
OSPFArea#
Prefixes can be exchanged between OSPF areas by interconnecting them on an Area Border Router (ABR) which configures both OSPFAreas in the same OSPFInstance. One interface is always part of one OSPFArea.
Examples#
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
OSPFInterface
SPEC
OSPFInterfaceSpec defines the desired state of OSPFInterface
-
Dead Interval in seconds.
range: 3 to 65535 -
Hello Interval in seconds.
range: 1 to 65535 -
Reference to a RoutedInterface.
-
Reference to the Kind of interface to enable OSPF on.
default: "RoutedInterface"enum: "RoutedInterface" -
Interface metric.
range: >= 0 -
OSPF interface MTU
range: 512 to 10240 -
Reference to a OSPFArea.
-
Reference to a OSPF Instance on which the OSPF area is configured.
-
Configure the OSPF interface as passive.
-
OSPF interface type.
default: "PointToPoint"enum: "PointToPoint", "Broadcast"
STATUS
OSPFInterfaceStatus defines the observed state of OSPFInterface
-
Indicates the health score of the OSPF interface.
-
Indicates the reason for the health score.
-
The time when the state of the resource last changed.
-
The number of discovered neighbors.
-
Operational state of the OSPF interface.
enum: "Up", "Down", "Degraded", "Unknown"