3.0 IP Routing
OSPF Practice Questions
Single-area OSPFv2 and OSPFv3 neighbor formation, DR/BDR, and route selection.
CCNA v2.0 objectives 3.3, 3.3.a · objective map
Author-reviewed by LabFabric · 6 September 2026 · Report a content issue
One solved question, so you can see how these are marked
Which configuration uses OSPF router configuration mode and a wildcard network statement to enable process 1 on interfaces in 10.0.12.0/30, assigning them to area 0?
router ospf 1, then network 10.0.12.0 0.0.0.3 area 0
router ospf 1 creates the OSPF process, and the network statement uses a wildcard mask (the inverse of the subnet mask) plus an area assignment to enable OSPF on any matching interface.
Every question in the set below is marked like this. The answers stay hidden until you pick one.
Find related practice in the CCNA pathAll 19 OSPF questions in this set
Answers and explanations appear when you work through the set above.
Under router ospf configuration mode, what does the network 0.0.0.0 255.255.255.255 area 0 statement do?
- Disables OSPF entirely
- Matches every interface on the router, enabling OSPF everywhere in area 0
- Advertises only a default route
- Restricts OSPF to loopback interfaces only
Why mark an OSPF-enabled user LAN interface as passive when its subnet should be advertised but no OSPF neighbors should form there?
- Passive mode disables IP forwarding on that interface
- It stops OSPF from sending Hello packets out that interface while still advertising its subnet
- It removes the loopback's subnet from the routing table
- It forces the loopback to become the DR
A Cisco IOS router already has a usable IPv4 default route in its routing table. Which OSPF process command advertises that default into a normal, non-stub OSPF area?
- default-information originate
- redistribute static
- network 0.0.0.0 0.0.0.0 area 0
- ip default-network
In show ip route output, a route learned via OSPF is marked with which code?
- D
- R
- O
- S
A router that originates a default route into OSPF, and whose routing table also shows external routes injected by another router, is best described as what OSPF role?
- Backbone router only
- Autonomous System Boundary Router (ASBR)
- Area Border Router (ABR)
- Designated Router (DR)
Which command lists each OSPF neighbor's router ID, state, and the interface the adjacency was formed over?
- show ip ospf database
- show ip ospf neighbor
- show ip protocols
- show ip ospf interface
An OSPF broadcast segment contains exactly two routers. They discover each other but remain 2-WAY, with neither a DR nor BDR elected. Which condition explains this?
- A mismatched OSPF process number between the two routers
- Both routers are ineligible to become DR or BDR, such as when both have OSPF priority 0
- The routers have different router IDs
- OSPF is disabled on the loopback interfaces
By default, what value determines a router's OSPF router ID if no loopback interface and no manually configured router-id exist?
- The lowest MAC address on the router
- The highest IP address among the router's up/up physical interfaces
- A randomly generated 32-bit value
- The hostname converted to an IP-like format
Which command displays a router's OSPF process ID, router ID, configured networks with their areas, and administrative distance in one summary?
- show ip ospf database
- show ip protocols
- show ip ospf border-routers
- show running-config | section ospf
On a point-to-point serial link running OSPF, what happens to the DR/BDR election process compared to an Ethernet segment?
- It works exactly the same as on Ethernet
- No DR or BDR election occurs, since only two routers can exist on the link
- Only a BDR is elected, never a DR
- The election is based on interface bandwidth instead of priority
What does the OSPF cost of an interface default to being based on, unless manually overridden?
- The interface's configured bandwidth relative to a reference bandwidth
- The number of hops to the destination
- The interface's MTU
- A fixed value of 1 for every interface type
A router shows two equal-cost paths to the same destination network via OSPF in its routing table. What does this reflect?
- A routing loop
- OSPF's default support for equal-cost multi-path (ECMP) load balancing
- A misconfiguration that should be fixed
- A redistribution error
Which OSPF LSA type describes a router's own directly connected links and is originated by every OSPF-speaking router?
- Type 1, Router LSA
- Type 2, Network LSA
- Type 3, Summary LSA
- Type 5, External LSA
An OSPF neighbor relationship fails to form and the console shows a mismatched Hello or Dead interval. What must match between two OSPF neighbors for an adjacency to succeed?
- Only the area number
- Hello interval, Dead interval, area number, and (if used) authentication settings must all match
- Only the router ID
- Only the process number
Which command displays per-interface OSPF network type, cost, timers, and DR/BDR details where applicable?
- show ip ospf interface <name>
- show ip ospf neighbor detail
- show cdp neighbors detail
- show ip ospf virtual-links
Why does OSPF require every non-backbone area to connect to area 0, either directly or through a virtual link?
- It is only a Cisco best practice, not a protocol requirement
- OSPF's design assumes all inter-area routing transits the backbone area, so a disconnected area cannot properly exchange summarized routes with other areas
- Area 0 is required only when using authentication
- Non-backbone areas can only run RIP instead
In show ip ospf database output, what does the 'Net Link States' section (Type 2 LSAs) represent?
- Static routes redistributed into OSPF
- Router-to-router point-to-point links
- Multi-access segments and the routers attached to them, originated by the DR
- External routes learned from BGP
R1 and R2 share an Ethernet link and their OSPF adjacency is stuck in EXSTART. An AI assistant recommends changing R2's router ID because it suspects a duplicate. show interfaces reports MTU 1500 on R1's link and MTU 1400 on R2's. How should you treat the recommendation?
- Apply it, because a duplicate router ID is the usual cause of an EXSTART loop
- Reject it, because the output points to an MTU mismatch: align the MTU on both ends
- Apply it, then clear the OSPF process on both routers to force a new election
- Reject it, and move R2's interface into a different OSPF area instead
On a broadcast segment with four routers, show ip ospf neighbor on R3 lists neighbor 4.4.4.4 in state 2WAY/DROTHER. An AI assistant flags this as a failed adjacency and recommends restarting OSPF on R3. R3 is itself a DROTHER. What is the most accurate evaluation?
- The recommendation is correct, because every OSPF neighbor must reach FULL
- The recommendation is correct, but the reset should be done on the DR instead
- The recommendation is wrong: two DROTHERs normally stay in 2WAY and go FULL only with the DR and BDR
- The recommendation is wrong: 2WAY means the hello timers differ and must be matched