OSPFv2 on a point-to-point link
Use OSPFv2 to advertise IPv4 routes inside an area. The first checkpoint is a Full adjacency; the link-state database and the Linux route table answer different questions.
Configure the first router
This is router A on the test veth pair. Router B uses its own router ID, the interface on the opposite end, and the same network type and area.
router-id = "10.0.0.1"
[ospf]
enabled = true
interfaces = ["veth0"]
network-type = "point-to-point"
Observe the result
bash scripts/ospf-show-smoke.sh
On a separate running instance, inspect the same state:
wren show ospf neighbors
wren show ospf interfaces
wren show ospf database
The lab runs its own queries before cleanup and checks for the neighbor in Full state and the interface in PtP state. wren show ospf neighbors steps through the RFC 2328 states on the way:
stateDiagram-v2
direction LR
[*] --> Down
Down --> Init: Hello seen
Init --> TwoWay: our ID in its Hello
TwoWay --> ExStart: form adjacency
ExStart --> Exchange
Exchange --> Loading: database described
Loading --> Full: LSAs received
Exchange --> Full: nothing to request
Choose an area type
Stub areas suppress external LSAs. An NSSA may originate local externals as type 7. An ABR can inject a default into a plain NSSA. Use the stub, NSSA default, or totally stubby lab to check what each router learns.
Redistribution and authentication
Configure redistribution deliberately on the ASBR and inspect the receiving router’s database. Separate regression cases cover redistribution and authentication. Review the coverage notes before relying on an optional extension.