OSPF: practice questions

Single-area OSPFv2 and OSPFv3: neighbor adjacencies, network types, DR and BDR election, and router ID selection.

CCNA 200-301 v2.0, exam topic 3.3 · part of 3. IP Routing, 20% of the exam

The same material in the CCNA 200-301 v1.1 exam: OSPFv2

What this topic covers

Hello packets
Routers send periodic hellos to their neighbors and declare a link down when hellos stop arriving.
Link-state advertisements
LSAs describe a router's links and their costs; sequence numbers and ages discard old or duplicate copies.
Router ID
Each router needs an ID that is unique in the routing domain and stable: it labels the router's LSAs and names it to its neighbors.
Link-state operation
Every router floods link state and computes shortest paths.
Forming adjacencies
Neighbors must agree on area, subnet, hello and dead intervals, authentication and MTU to become fully adjacent.
Point-to-point and broadcast networks
On a broadcast segment routers elect a designated router and a backup to limit adjacencies; a point-to-point link needs no election.
DR and BDR election
The highest priority wins, then the highest router ID; priority 0 never becomes DR, and a new router does not take over from a working DR.
Router ID selection
A configured router ID wins; otherwise routers commonly take the highest loopback address, then the highest active interface address.
OSPFv3 for IPv6
OSPFv3 carries IPv6 routes, talks over link-local addresses and keeps the same area design.

Sample question

Try it, then open the answer. Our questions are written by AI and checked independently before they are published.

Easy Single choice

What is the primary factor used to elect an OSPF router ID automatically?

  1. A. highest active loopback interface IP address
  2. B. highest physical interface IP address
  3. C. lowest active interface IP address
  4. D. configured router priority value
Show the answer

Answer: A. highest active loopback interface IP address

When an explicit OSPF router ID is not configured, the router chooses the highest IP address among its active loopback interfaces. If no loopback interfaces exist, it falls back to the highest IP address on an active physical interface.

Further reading