Skip to content

OSPFv2

netverdict models OSPFv2 as a deterministic routing protocol, not as a vendor router binary. The goal is to answer practical questions:

  • Will these routers form neighbours?
  • Which router becomes DR or BDR?
  • Which routes are intra-area, inter-area, or external?
  • What changes when an ABR summarizes, a stub area blocks externals, or a virtual link is added?
AreaLevelWhat this means
Single-area OSPFv2SupportedNeighbours, router IDs, OSPF routes, interface costs, timers, passive interfaces.
Multi-area OSPFv2SupportedABR detection as RFC 3509’s Cisco type: a router is an ABR only with ports up in two or more areas, one of them the backbone (a virtual link counts); bit B and summaries wait until then. Type-3 inter-area route projection.
Broadcast segmentsSupportedDR / BDR election with priority and router-id tie-breaks.
Stub areasSupportedStub and totally-stubby behaviour, including ABR default route injection.
NSSASupportedNSSA and totally-NSSA route behaviour, including Type-7-style local external handling and ABR projection.
ABR summarisationSupportedarea <id> range and not-advertise. A range’s cost has no effect: the summary carries the component metric.
Virtual linksSupportedABR-to-ABR logical area-0 adjacency through a non-stub transit area.
Connected / static redistributionSupportedConnected and static routes become OSPF external routes; E1 / E2 metric type is tracked. In a VRF’s process, redistribute bgp (MPLS L3VPN PE-CE) and redistribute omp (SD-WAN service VPN) are read too.
OSPF authenticationPartialMD5 configuration is parsed and adjacency mismatch is modelled. Packet-level cryptographic fidelity is not the goal.
Packet fidelitySupportedHello, DBD, LSR, LSU and LSAck are on the wire in a capture (Packet Lens), decoded by Wireshark. LSAs carry the initial sequence number.
StandardCoverageNotes
RFC 2328, OSPF Version 2Behaviour modelCore OSPFv2 concepts: areas, router IDs, Hello timers, DR / BDR election, SPF route computation, Type-3 summaries, virtual links, external routes.
RFC 2328 section 9.4SupportedDR / BDR election uses priority first and router ID as deterministic tie-break. Priority 0 prevents DR / BDR eligibility.
RFC 2328 section 12.4.3SupportedABR summary range behaviour for area <id> range: covered components are suppressed and one summary may be advertised.
RFC 2328 section 15.1SupportedVirtual links are validated against ABR and transit-area constraints. Stub-family transit areas are rejected.
RFC 2328 appendix DPartialArea and interface MD5 authentication settings are accepted. Authentication mismatch prevents adjacency.
RFC 3101, NSSASupportedPlain NSSA gets summaries and no default; nssa no-summary gets the ABR’s Type-3 default and nothing else; nssa default-information-originate originates a Type-7 default (P bit clear). One translator per NSSA piece, elected among border routers reachable over the NSSA; Type-7s leave the area only through it. RFC 3101 §2.4’s mandatory default follows Cisco’s opt-in instead.
RFC 5880, BFDIntegrationOSPF can be gated by BFD with ip ospf bfd or bfd all-interfaces. BFD itself is modelled separately.
RFC 5340, OSPFv3Separate pageOSPFv3 exists as a separate IPv6 model and is not covered by this OSPFv2 matrix.
FeatureStatusNotes
router ospf <pid>SupportedOne process per device.
router ospf <pid> vrf <name>SupportedA per-VRF process, isolated from the other VRFs on the router.
Router ID selectionSupportedExplicit router-id; otherwise the highest address on an administratively up loopback, else on an up port, as on IOS. LDP and PIM use the same rule.
network <prefix> <wildcard> area <id>SupportedCisco-style network statements bind IPv4 interfaces to areas. The most specific statement wins whatever the order typed; an ip ospf … area line on the port overrides them all.
Dotted area IDsSupportedAccepted in Cisco-style CLI where implemented.
Hello packetsSupportedSimulated on deterministic timers, not wall-clock timers.
Hello / dead timer mismatchSupportedMismatched neighbours do not form; mismatch is surfaced as an event.
Passive interfacesSupportedpassive-interface <name> and passive-interface default. A passive port sends no Hellos, so it takes no part in the DR/BDR election.
Interface costSupportedip ospf cost <cost> participates in route computation. A loopback’s stub costs its port’s cost: 1 on IOS and NX-OS, 0 on Junos and VyOS/FRR unless stated. An Arista EOS port with no ip ospf cost costs 10 whatever its speed, its loopback included. A point-to-point link also lists its subnet as a stub.
Interface prioritySupportedip ospf priority <0-255> controls DR / BDR election.
DR / BDR electionSupportedDeterministic election on broadcast multi-access segments.
Network typesSupportedip ospf network: broadcast, point-to-point, non-broadcast (neighbours configured by hand), point-to-multipoint, point-to-multipoint non-broadcast.
Adjacency statesSupported2-Way → ExStart → Exchange → Loading → Full, one state per round; the lower router ID is the slave; Loading only when LSAs are missing; routes install at Full (RFC 2328 §10, RFC 5340 §4.2).
MTU mismatchSupportedOne-sided as in RFC 2328 §10.6: a DBD naming a larger MTU is refused, so a narrower master stays EXSTART and its slave EXCHANGE, retransmitting every 5 s. ip ospf mtu-ignore (and ipv6 ospf / ospfv3, XR mtu-ignore enable, VyOS mtu-ignore) on the narrow end lifts it. OSPFv3 names the IPv6 MTU (ipv6 mtu, RFC 5340 §A.3.3) where one is set. An unstated MTU counts as 1500.
Router LSAsBehaviour modelInternal LSDB state is modelled for route computation and show output.
Network LSAsBehaviour modelBroadcast transit segments are represented for SPF behaviour.
Summary LSAsBehaviour modelType-3 inter-area route projection is modelled at ABRs.
External LSAsBehaviour modelRedistributed statics are projected as external routes.
E1 / E2 metric typeSupportedredistribute static metric-type 1 or 2; E2 is the default.
Stub areaSupportedBlocks external routes and injects a default from the ABR.
Totally-stubby areaSupportedBlocks external and inter-area routes; default remains.
NSSASupportedAllows local external injection while preserving stub-like area behaviour. One ABR, the one with the highest router ID, translates Type-7 to Type-5.
Totally-NSSASupportedNSSA plus inter-area suppression.
Area default costSupportedarea <id> default-cost <cost> changes the injected default metric.
Area rangeSupportedarea <id> range <network> <mask>.
Area range not-advertiseSupportedSuppresses covered prefixes and does not emit the summary.
Area range costNo effectAccepted and reported; the summary carries the component metric, not the configured one.
Virtual linksSupportedarea <transit> virtual-link <remote-router-id>.
Virtual-link costSupportedOptional explicit cost.
Virtual-link auth modeConfiguredAccepted and emitted; packet-level auth exchange is simplified.
maximum-pathsSupportedLimits equal-cost OSPF paths installed into the RIB.
default-information originateSupportedAdvertises a default route when enabled. Optional always is accepted as equivalent.
auto-cost reference-bandwidthSupportedInterface cost is reference bandwidth divided by interface bandwidth, unless a cost is configured.
max-metric router-lsaSupportedThe router stays reachable but is avoided as a transit path.
Sham-linkSupportedarea <id> sham-link between two PEs competes with the backdoor link on cost.
Loop-free alternatesSupportedBackup next hops (LFA and remote LFA) are computed over the OSPF topology.
redistribute bgp ...PartialOnly in a VRF’s process (router ospf N vrf V): a PE hands the CE what MP-BGP imported, as E2 externals. See MPLS L3VPN. In the global process the line is not read.
redistribute omp [route-map NAME]SupportedIn router ospf N vrf V on an SD-WAN edge: the OMP routes the edge installed in V become externals, filtered by the map.
table-map NAME filterSupportedA computed route the route-map denies is not installed. The LSDB and the tree are unchanged.
distribute-list … in|outNo effectAccepted and reported: every route the SPF found is installed.
Graceful restartPartialHelper mode exists in the engine: a helper keeps a restarting neighbour through the grace period. No vendor command turns it on yet.
Opaque LSAs / traffic engineeringNot modelledNot part of the current OSPF training surface.
CommandIOS-styleJunos-styleVyOS-styleNotes
router ospf 1Supportedn/an/aCisco-family process mode.
router-id 1.1.1.1SupportedSupportedSupportedJunos / VyOS map to the same canonical OSPF router ID.
network 10.0.0.0 0.0.0.255 area 0Supportedn/an/aCisco-style interface selection. A secondary address is a stub network: under network statements it is advertised when one covers it in the primary’s area; ip ospf N area A [secondaries none] takes all or none of them and supersedes network; prefix suppression spares them. A process runs only on ports a network statement, ip ospf N area A or a vendor’s port statement binds; router ospf 1 with no network runs on no port and sends no Hellos.
set protocols ospf area 0 interface ge-0/0/0n/aSupportedn/aJunos-style interface-to-area binding.
set protocols ospf area 0 interface ge-0/0/0 metric 25n/aSupportedn/aAs ip ospf cost: the cost moves the path. Written back in the Junos export.
set protocols ospf area 0 interface ge-0/0/0 hello-interval 5n/aSupportedn/aAs ip ospf hello-interval: a mismatch blocks the adjacency. Written back.
set protocols ospf area 0 interface ge-0/0/0 dead-interval 20n/aSupportedn/aAs ip ospf dead-interval: a mismatch blocks the adjacency. Written back.
set protocols ospf area 0 interface ge-0/0/0 priority 0n/aSupportedn/aAs ip ospf priority: priority 0 is never DR. Written back.
set protocols ospf area 0 interface ge-0/0/0 interface-type p2pn/aSupportedn/aNetwork type: p2p, p2mp or nbma. Written back. Other interface knobs, such as disable, are refused and reported.
set protocols ospf area 0 interface ge-0/0/0 passiven/aSupportedn/aAdds interface to passive OSPF set.
set protocols ospf area 0 interface ge-0/0/0 bfd-liveness-detectionn/aSupportedn/aEnables OSPF BFD gating.
set protocols ospf area 0 network 10.0.0.0/24n/an/aSupportedVyOS-style area network syntax.
passive-interface defaultSupportedn/aSupportedJunos has no default form; it marks each interface passive.
passive-interface GigabitEthernet0/0SupportedSupportedSupportedJunos: area A interface IF passive.
ip ospf priority 200SupportedSupportedSupportedControls DR / BDR election. Junos: interface IF priority N.
ip ospf network point-to-pointSupportedSupportedSupportedInterface network type. Junos: interface-type. Changing it (or the area, hello/dead interval or authentication) restarts the adjacency.
ip ospf cost 20SupportedSupportedSupportedCanonical interface cost. Junos: interface IF metric N.
ip ospf hello-interval 5SupportedSupportedSupportedPer-interface timer override. Junos: interface IF hello-interval N.
ip ospf dead-interval 20SupportedSupportedSupportedA neighbour ages out after its own dead interval (carried on its Hellos). Must be greater than hello interval. ip ospf dead-interval minimal hello-multiplier N gives a one-second dead interval; its Hellos carry HelloInterval 0 and ignore the one received, so two fast-hello ends form an adjacency and a fast end facing a normal one does not. show ip ospf interface prints the Hello as Hello <1000/N> msec; a capture stepped finely enough shows N Hellos a second, the 1-second simulation round one. Junos: interface IF dead-interval N.
ip ospf message-digest-key 1 md5 secretPartialNot yetPartialAuth mismatch affects adjacency; cryptographic packet fidelity is simplified.
area 1 stubSupportedNot yetSupportedBlocks Type-5 external routes and injects default.
area 1 stub no-summarySupportedNot yetSupportedTotally-stubby behaviour.
area 1 nssaSupportedNot yetSupportedSummaries, no default. area 1 nssa default-information-originate [metric M] [metric-type T] adds a Type-7 default from the ABR.
area 1 nssa no-summarySupportedNot yetNot yetTotally-NSSA: the ABR’s Type-3 default and no other summary. A plain area 1 nssa on an internal router does not undo it.
area 1 range 10.0.0.0 255.255.0.0SupportedNot yetSupportedABR Type-3 summarisation.
area 1 virtual-link 2.2.2.2SupportedNot yetSupportedLogical area-0 adjacency through transit area.
area 1 sham-link 10.0.0.1 10.0.0.2SupportedNot yetNot yetIntra-area link between two PEs.
max-metric router-lsaSupportedNot yetSupportedStub router: no transit traffic.
redistribute bgp 65001PartialNot yetNot yetOnly in a VRF’s process (PE-CE).
redistribute staticSupportedNot yetSupportedStatic redistribution into OSPF. VyOS: set protocols ospf redistribute static|connected [metric N] [metric-type N]; default-information originate too.
redistribute static route-map NAMESupportedNot yetNot yetRoute-map can filter redistributed static routes.
prefix-suppressionSupportedn/an/aRFC 6860: transit prefixes are left out (loopbacks and passive networks stay; a transit LAN’s DR decides and sends its Network-LSA with mask /32). ip ospf prefix-suppression [disable] overrides per port. Routing across the links is unchanged.
bfd all-interfacesSupportedNot yetNot yetEnables BFD gating for all OSPF interfaces.
ip ospf bfdSupportedNot yetNot yetEnables BFD gating per interface.
show ip ospfSupportedSupported viewn/aIOS layout: Routing Process "ospf 1" with ID …, max-metric state, reference bandwidth, areas with their type and interface counts.
show ip ospf neighborSupportedSupported viewSupportedIOS layout: Neighbor ID (router ID), Pri, State (FULL/DR, FULL/BDR, FULL/DROTHER, FULL/ - on point-to-point, 2WAY/DROTHER, and EXSTART, EXCHANGE, LOADING while the database exchange runs), a Dead Time counting down, Address, Interface; detail and an interface filter. NX-OS (show ip ospf neighbors), EOS, VyOS (FRR) and Junos print their own layouts. IOS detail shows state changes and the up time; NX-OS an Up Time column; IOS-XR show ospf neighbor; VyOS FRR 9.1’s table; EdgeOS a ZebOS-style layout (approximated).
show ip ospf database [router|network|summary|asbr-summary|external|nssa-external] [LSID]SupportedSupported viewn/aEach area’s database as real OSPF holds it: a Router-LSA per area with B/E, ABR summaries per RFC 2328 §12.4.3, ASBR summaries, type 5 only from the ASBR, NSSA type 7 translated by the highest router ID. LS age counts from origination with the 1800 s refresh; sequence numbers and checksums are the instance’s. The detail forms print IOS’s layout. OSPFv3 has no ages or inter-area LSAs here.
show ip ospf border-routersSupportedn/an/aIOS 15 layout: intra-area rows with cost, next hop, port, ABR/ASBR and area.
show ip ospf virtual-linksSupportedn/an/ais up with the transit area, the interface and the path cost, or is down.

OSPF in netverdict is replay-oriented. Timers are simulated events, not wall-clock sleeps. Running the same topology and the same commands should produce the same neighbour states and route tables.

SPF is deterministic. When multiple equal-cost candidates exist, the engine uses stable ordering so a replay does not drift between runs.

Broadcast network DR / BDR election follows the OSPF priority rule first, then router ID. The bundled DR lab deliberately uses router IDs 1.1.1.1, 2.2.2.2, and 3.3.3.3 so the default outcome is easy to inspect before changing priority.

ABR summarisation is modelled at the area boundary. With area 1 range 10.0.0.0 255.255.0.0, more-specific area-1 components are suppressed when leaving area 1, and the ABR emits the configured summary unless not-advertise is present.

Virtual links are modelled as logical area-0 links between ABRs. They require a valid non-stub transit area. If the transit area is stub-family, the virtual link stays down and show ip ospf virtual-links reports it as down.

Basic single-area OSPF
configure terminal
router ospf 1
router-id 1.1.1.1
network 10.0.12.0 0.0.0.3 area 0
network 1.1.1.1 0.0.0.0 area 0
end
show ip ospf neighbor
show ip route

Vendor styles

IOS-style
router ospf 1
router-id 1.1.1.1
network 10.0.12.0 0.0.0.3 area 0
network 10.0.1.0 0.0.0.255 area 1
area 1 stub no-summary
Junos-style
set routing-options router-id 1.1.1.1
set protocols ospf area 0 interface ge-0/0/0.0
set protocols ospf area 1 interface ge-0/0/1.0
VyOS-style
set protocols ospf parameters router-id 1.1.1.1
set protocols ospf area 0 network 10.0.12.0/30
set protocols ospf area 1 network 10.0.1.0/24
Force a DR election outcome
configure terminal
interface GigabitEthernet0/0
ip ospf priority 200
end
clear ip ospf process
show ip ospf neighbor
Summarise area routes at an ABR
configure terminal
router ospf 1
area 1 range 10.0.0.0 255.255.0.0
end
show ip ospf database
show ip route
Build a virtual link through area 1

On the ABR connected to area 0:

configure terminal
router ospf 1
area 1 virtual-link 3.3.3.3
end
show ip ospf virtual-links

On the remote ABR:

configure terminal
router ospf 1
area 1 virtual-link 2.2.2.2
end
show ip ospf virtual-links
LabCoversLink
OSPF DR / BDR electionBroadcast segments, priority, router-id tie-breakOpen lab
OSPF multi-area ABRArea 0, non-zero areas, ABR Type-3 projectionOpen lab
OSPF area rangeABR summarisation with area <id> rangeOpen lab
OSPF virtual linkLogical area-0 adjacency through transit areaOpen lab

netverdict intentionally separates routing behaviour from full packet-level vendor emulation.

The current OSPFv2 model does not implement opaque LSAs, traffic-engineering LSAs, vendor-specific SPF throttling, or exact vendor debug output. Graceful restart helper mode exists in the engine, but no vendor command reaches it. Redistribution carries connected and static routes, and, in a VRF’s process, BGP and OMP routes. distribute-list has no effect. Junos reads OSPF only as area A interface IF with its knobs (no area types, ranges or export policy); VyOS and EdgeOS read the interface knobs in both spellings (1.4 protocols ospf interface ethN …, 1.3/EdgeOS interfaces … ip ospf …), passive default, area types, ranges, virtual links, default-information originate, auto-cost, maximum-paths, max-metric administrative and OSPFv3 (interface ethN area N, cost, priority, passive); abr-type and log-adjacency-changes have no effect, one redistribution source is kept per process, and bfd, OSPFv3 network type and timers are not read. Junos has no mtu-ignore. IOS-XR’s interface settings (cost, network type, priority, hello/dead interval, passive, mtu-ignore), authentication and keys, and bfd fast-detect with its timers inherit from area and process, the most explicit level winning; a key mismatch forms no adjacency. The XR export writes each setting back at the level the config stated it. XR has no dead-interval minimal (no sub-second Hellos), so that line is not read.

OSPF packets are on the wire in a capture (Packet Lens), decoded by Wireshark. LSAs carry the initial sequence number, and authentication is shown as a simple password.

Use the page as a support contract for the simulator, not as a claim that netverdict is a drop-in replacement for IOS, Junos, FRR, or VyOS.