Practice OSPF Questions Now
Start a timed practice session focusing on Open Shortest Path First (OSPF) topics from the CCNA question bank.
Start CCNA Practice Quiz →CCNA OSPF Question Bank (25 Questions)
Browse all 25 practice questions covering Open Shortest Path First (OSPF) for the CCNA certification exam. Each question includes the full answer and a detailed explanation to help you understand the concepts.
- Question 1IP Connectivity
What is the final OSPF neighbor state indicating full adjacency?
Show Answer & Explanation
Correct Answer: DExplanation:Full state means complete LSDB synchronization. The sequence is: Down → Init → 2-Way → ExStart → Exchange → Loading → Full.
- Question 2IP Connectivity
What is the purpose of OSPF Area 0?
Show Answer & Explanation
Correct Answer: BExplanation:Area 0 is the OSPF backbone area. All other areas must connect to Area 0 either directly or through a virtual link for inter-area routing to work.
- Question 3IP Connectivity
How is OSPF cost calculated by default on Cisco routers?
Show Answer & Explanation
Correct Answer: BExplanation:OSPF cost = reference bandwidth (default 100 Mbps) / interface bandwidth. A 100 Mbps link has cost 1, a 10 Mbps link has cost 10.
- Question 4IP Connectivity
What determines the OSPF Designated Router (DR) election on a broadcast network?
Show Answer & Explanation
Correct Answer: BExplanation:DR is elected by highest OSPF priority (default 1, range 0-255). Priority 0 means ineligible. If tied, highest router ID wins.
- Question 5IP Connectivity
What is the default OSPF Hello interval on an Ethernet interface?
Show Answer & Explanation
Correct Answer: BExplanation:OSPF Hello interval is 10 seconds on broadcast/point-to-point networks and 30 seconds on NBMA. Dead interval is 4× Hello (40 seconds on Ethernet).
- Question 6IP Connectivity
How is OSPF cost calculated for an interface?
Show Answer & Explanation
Correct Answer: BExplanation:OSPF cost = Reference BW / Interface BW. Default reference = 100 Mbps. So: 10 Mbps = cost 10, 100 Mbps = cost 1, 1 Gbps = cost 1 (same!). For Gigabit+ links, increase reference: 'auto-cost reference-bandwidth 10000' (10 Gbps) to differentiate.
- Question 7IP Connectivity
On a multi-access OSPF network, how is the Designated Router (DR) elected?
Show Answer & Explanation
Correct Answer: BExplanation:DR election: highest OSPF priority (0-255, default 1) wins. Priority 0 = never become DR. If tied, highest Router ID wins. DR election is non-preemptive — a new router with higher priority doesn't replace the current DR until a failure occurs.
- Question 8IP Connectivity
What is the purpose of OSPF Area 0 (backbone area)?
Show Answer & Explanation
Correct Answer: BExplanation:Area 0 is the OSPF backbone. Rules: every area must connect to Area 0 (directly or via virtual link). Inter-area traffic flows through Area 0. ABRs (Area Border Routers) connect non-backbone areas to Area 0 and summarize routes between areas.
- Question 9IP Connectivity
Which OSPF packet type is used to establish and maintain neighbor adjacencies by exchanging hello messages?
Show Answer & Explanation
Correct Answer: AExplanation:OSPF Type 1 Hello packets are used to discover neighbors and maintain adjacencies. They are sent periodically (default 10 seconds on broadcast/point-to-point networks). DBD packets exchange database summaries, LSR requests specific LSAs, LSU carries LSAs, and LSAck acknowledges receipt of LSAs.
- Question 10IP Connectivity
What is the OSPF router ID selection order of preference?
Show Answer & Explanation
Correct Answer: BExplanation:OSPF selects the router ID in this order: (1) manually configured router-id, (2) highest IP on any active loopback interface, (3) highest IP on any active physical interface.
- Question 11IP Connectivity
What is the default OSPF network type on an Ethernet interface?
Show Answer & Explanation
Correct Answer: BExplanation:Ethernet interfaces default to broadcast network type, which elects a DR and BDR. Serial interfaces default to point-to-point.
- Question 12IP Connectivity
Which OSPF version supports IPv6?
Show Answer & Explanation
Correct Answer: CExplanation:OSPFv3 (RFC 5340) was designed for IPv6. OSPFv2 is for IPv4. OSPFv3 can also carry IPv4 routes using address families.
- Question 13IP Connectivity
What is the effect of configuring an OSPF interface as passive?
Show Answer & Explanation
Correct Answer: BExplanation:A passive OSPF interface advertises the connected network in LSAs but does not send or process Hello packets, so no adjacencies form on that interface.
- Question 14IP Connectivity
Which OSPF authentication type uses MD5 hashing?
Show Answer & Explanation
Correct Answer: CExplanation:OSPF authentication: Type 0 = none, Type 1 = clear-text password, Type 2 = MD5 cryptographic authentication. Type 2 is recommended for security.
- Question 15IP Connectivity
What is the key difference between OSPFv2 and OSPFv3?
Show Answer & Explanation
Correct Answer: BExplanation:OSPFv3: native IPv6 support, uses link-local addresses for adjacencies, configured per-interface (not network command), authentication via IPsec instead of OSPF-native auth, and new LSA types (0x2008/0x2009 for IPv6 prefixes). Can carry IPv4 too with address families.
- Question 16IP Connectivity
Which command verifies the OSPF neighbor relationships on a Cisco router?
Show Answer & Explanation
Correct Answer: BExplanation:'show ip ospf neighbor' displays the OSPF neighbor table, showing neighbor IDs, states (FULL, 2WAY, etc.), DR/BDR roles, and interface information. 'show ip route ospf' shows OSPF-learned routes. 'show ip ospf database' shows the LSDB. 'show ip protocols' shows configured routing protocols and parameters.
- Question 17IP Connectivity
An OSPF router is stuck in the EXSTART/EXCHANGE state with its neighbor. What is the most likely cause?
Show Answer & Explanation
Correct Answer: BExplanation:When OSPF neighbors get stuck in EXSTART/EXCHANGE state, the most common cause is mismatched MTU values. During the database exchange, OSPF includes the interface MTU in DBD packets. If MTU values don't match, the adjacency cannot progress. Mismatched hello/dead timers prevent reaching 2-WAY state. Mismatched area IDs prevent neighbor discovery.
- Question 18IP Connectivity
A router has two equal-cost routes to the same destination learned via OSPF. What will the router do by default?
Show Answer & Explanation
Correct Answer: CExplanation:OSPF supports Equal-Cost Multi-Path (ECMP) routing by default. When multiple routes to the same destination have the same OSPF cost, the router installs all of them in the routing table and load-balances traffic across them. Cisco IOS allows up to 4 ECMP paths by default (configurable up to 32).
- Question 19IP Connectivity
Which OSPF area must all other areas connect to, serving as the backbone?
Show Answer & Explanation
Correct Answer: BExplanation:OSPF Area 0 is the backbone area. All other OSPF areas must connect to Area 0 either directly or via virtual links. This hierarchical design ensures loop-free inter-area routing and is a fundamental OSPF requirement.
- Question 20IP Connectivity
What is the administrative distance of an OSPF-learned route on a Cisco router?
Show Answer & Explanation
Correct Answer: CExplanation:OSPF has a default administrative distance (AD) of 110 on Cisco routers. EIGRP internal routes have AD 90, EIGRP external has AD 170, RIP has AD 120, static routes have AD 1 (or 0 for connected), and eBGP has AD 20.
- Question 21IP Connectivity
In OSPF, what role does the Designated Router (DR) play on a multi-access network?
Show Answer & Explanation
Correct Answer: BExplanation:On multi-access networks (like Ethernet), the DR reduces OSPF overhead by minimizing the number of full adjacencies. Instead of every router forming adjacencies with every other router (n*(n-1)/2), all routers form adjacencies only with the DR and BDR. The DR collects and distributes LSAs for the segment. Route redistribution is done by ASBRs, and summarization by ABRs.
- Question 22IP Connectivity
Which command enables OSPF on all interfaces whose IP addresses fall within the 10.1.0.0/16 range on a Cisco router?
Show Answer & Explanation
Correct Answer: AExplanation:OSPF uses wildcard masks (inverse of subnet masks). For a /16 network, the wildcard mask is 0.0.255.255. The command 'network 10.1.0.0 0.0.255.255 area 0' activates OSPF on all interfaces with IP addresses in the 10.1.x.x range and places them in Area 0. Option B incorrectly uses a subnet mask instead of a wildcard mask.
- Question 23IP Connectivity
What metric does OSPF use to determine the best path to a destination?
Show Answer & Explanation
Correct Answer: CExplanation:OSPF uses cost as its metric, calculated as the reference bandwidth divided by the interface bandwidth (default: 100 Mbps / interface bandwidth). Lower cost means a better path. RIP uses hop count. EIGRP uses a composite metric based on bandwidth and delay. Administrative distance is used to choose between different routing protocols, not within a protocol.
- Question 24IP Connectivity
What must be configured when redistributing routes between OSPF and EIGRP?
Show Answer & Explanation
Correct Answer: BExplanation:Route redistribution requires: a seed metric (EIGRP needs bandwidth/delay/reliability/load/MTU; OSPF needs cost/type). Without a metric, redistributed routes may be ignored. Route maps and distribute lists filter which routes are injected to prevent loops.
- Question 25IP Connectivity
If a router learns the same destination via OSPF (AD 110) and EIGRP (AD 90), which route is installed?
Show Answer & Explanation
Correct Answer: BExplanation:Administrative Distance determines route preference between different routing sources. Lower AD = more trusted. Common ADs: Connected (0), Static (1), EIGRP (90), OSPF (110), IS-IS (115), RIP (120), External EIGRP (170), iBGP (200). EIGRP's 90 beats OSPF's 110.
Key OSPF Concepts for CCNA
CCNA OSPF Exam Tips
Open Shortest Path First (OSPF) questions in CCNA are typically scenario-based. Focus on service-level decision making aligned to official exam objectives. Priority concepts: ospf, area, lsa, dr, bdr, neighbor.
What CCNA Expects
- Anchor your answer in select the most practical, secure, and scalable answer for the stated scenario.
- OSPF scenarios for CCNA are frequently mapped to Domain 3 (25%), so read the objective carefully before picking controls or architecture.
- Expect multi-service scenarios where OSPF interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated service question.
- When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Associate) and managed-service best practices.
High-Value OSPF Concepts
- Know the core OSPF building blocks cold: ospf, area, lsa, dr.
- Review the edge-case features and limits for bdr, neighbor; these details are commonly used to differentiate answer choices.
- Practice service-integration reasoning: how OSPF pairs with Routing, IP Addressing, Network Fundamentals in real deployment patterns.
- For CCNA, explain why the chosen OSPF design meets reliability, security, and cost expectations better than the alternatives.
Common CCNA Traps
- Watch for answers that partially solve the requirement but miss operational constraints.
- Questions in IP Connectivity often include distractors that look correct for OSPF but violate least-privilege, durability, or availability requirements.
- Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
- If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.
Fast Review Checklist
- Can you compare at least two OSPF implementation paths and justify which one best fits the scenario?
- Can you map the chosen answer back to IP Connectivity (25%) outcomes for CCNA?
- Can you explain security and access boundaries for OSPF without relying on default-open assumptions?
- Can you describe how OSPF integrates with Routing and IP Addressing during failure, scaling, and monitoring events?