























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























































































Question 1. Which OSPF routing protocol characteristic distinguishes it from distance‑vector protocols such as RIP? A) It uses hop count as its metric. B) It sends full routing tables every 30 seconds. C) It builds a complete map of the network topology. D) It only supports classful addressing. Answer: C Explanation: OSPF is a link‑state protocol; each router constructs a full topology map (LSDB) and runs SPF to compute best paths, unlike distance‑vector protocols that exchange only distance information. Question 2. The Dijkstra algorithm used by OSPF computes the: A) Shortest‑Path Tree (SPT). B) Longest‑Path Tree (LPT). C) Minimum‑Spanning Tree (MST). D) Routing Information Base (RIB). Answer: A Explanation: SPF (Shortest Path First) runs Dijkstra’s algorithm on the LSDB to produce the SPT, from which the routing table is derived. Question 3. In OSPF, the database that stores all received LSAs for an area is called the: A) Adjacency Database. B) Forwarding Database. C) Link‑State Database (LSDB). D) Routing Information Base.
Answer: C Explanation: The LSDB (also called the topology table) holds every LSA for the area, providing a synchronized view of the network. Question 4. Which OSPF data structure contains the list of directly discovered OSPF neighbors? A) LSDB. B) Routing Table. C) Adjacency Database (Neighbor Table). D) MAC Address Table. Answer: C Explanation: The adjacency database (neighbor table) records each neighbor’s state and attributes after Hello exchange. Question 5. OSPF areas are used primarily to: A) Increase the size of the routing table. B) Reduce SPF calculation load and LSA flooding. C) Disable authentication. D) Convert OSPF to a distance‑vector protocol. Answer: B Explanation: Multi‑area designs limit LSDB size per area, decreasing SPF processing and limiting LSA propagation to the area. Question 6. The backbone area in OSPF is identified by which Area ID? A) 0.0.0.
A) Type 1 Hello. B) Type 2 Database Description. C) Type 3 Link‑State Request. D) Type 5 Link‑State Acknowledgment. Answer: B Explanation: DBD packets provide a concise list of LSAs a router possesses, allowing a neighbor to request missing ones. Question 10. Which packet type carries the actual LSA data after a router requests it? A) Type 3 Link‑State Request. B) Type 4 Link‑State Update. C) Type 5 Link‑State Acknowledgment. D) Type 1 Hello. Answer: B Explanation: LSU packets deliver the requested LSAs to the neighbor. Question 11. In OSPF, the packet used to acknowledge receipt of an LSU is: A) Type 1 Hello. B) Type 2 DBD. C) Type 3 LSR. D) Type 5 LSAck. Answer: D Explanation: LSAck confirms successful receipt of LSUs, ensuring reliable LSA flooding.
Question 12. Which OSPF neighbor state indicates that the routers have fully exchanged LSDB information? A) Down. B) Init. C) Two‑Way. D) Full. Answer: D Explanation: The Full state means the routers are fully adjacent, with synchronized LSDBs and ready to forward traffic. Question 13. By default, how often does an OSPF router send Hello packets on an Ethernet network? A) Every 5 seconds. B) Every 10 seconds. C) Every 30 seconds. D) Every 60 seconds. Answer: B Explanation: The default Hello interval on broadcast and point‑to‑point networks is 10 seconds. Question 14. The default OSPF Dead interval on Ethernet is: A) 10 seconds. B) 20 seconds. C) 40 seconds. D) 120 seconds.
C) Become BDR only if no other router is available. D) Be elected if its Router ID is highest. Answer: B Explanation: Priority 0 disables a router from participating in DR/BDR elections. Question 18. When two routers have identical OSPF priorities, the router that becomes DR is the one with: A) The lowest interface bandwidth. B) The highest Router ID. C) The lowest MAC address. D) The highest loopback address. Answer: B Explanation: OSPF uses the highest Router ID as the tiebreaker when priorities are equal. Question 19. Which multicast address is used by OSPF routers to send Hello packets to all OSPF routers on a LAN? A) 224.0.0. B) 224.0.0. C) 224.0.0. D) 224.0.0. Answer: A Explanation: 224.0.0.5 is the All‑SPF‑Routers multicast address for Hello and other OSPF packets. Question 20. OSPF elections are non‑preemptive. This means:
A) A newly added router with higher priority can immediately become DR. B) The current DR remains DR until it fails or the OSPF process restarts. C) DR/BDR are elected on every Hello interval. D) Router IDs are constantly re‑evaluated. Answer: B Explanation: Once elected, a DR stays DR for the life of the adjacency; higher‑priority routers cannot pre‑empt it. Question 21. The OSPF Router ID is chosen automatically in which order? A) Highest loopback IP, then highest active physical IP, then manual configuration. B) Manual configuration, then highest loopback IP, then highest active physical IP. C) Lowest physical IP, then manual configuration. D) Randomly selected at startup. Answer: B Explanation: The selection hierarchy is: manually set router-id > highest IP on a loopback > highest IP on an active physical interface. Question 22. To enable OSPF on a specific interface using the network command, which mask is used? A) Standard subnet mask. B) Wildcard mask. C) CIDR mask. D) No mask is required. Answer: B
C) Cost = Interface MTU / 1000. D) Cost = 1 regardless of bandwidth. Answer: B Explanation: OSPF cost = Reference Bandwidth ÷ Interface Bandwidth (rounded to the nearest integer). Question 26. The default reference bandwidth used by OSPF to calculate costs is: A) 1 Mbps. B) 10 Mbps. C) 100 Mbps. D) 1 Gbps. Answer: C Explanation: The default reference bandwidth is 100 Mbps (10⁸ bps). This can be changed with auto- cost reference-bandwidth. Question 27. After changing the reference bandwidth on a router, you must also: A) Restart the router. B) Re‑run the SPF algorithm manually. C) Clear the OSPF process to recalculate costs. D) No further action is required. Answer: C Explanation: Changing the reference bandwidth does not retroactively affect existing LSAs; a clear ip ospf process forces LSAs to be regenerated with new costs. Question 28. To manually set an OSPF interface cost to 5, which command is used?
A) ip ospf cost 5 B) ip ospf metric 5 C) ip ospf bandwidth 5 D) ip ospf priority 5 Answer: A Explanation: ip ospf cost overrides the calculated cost for that interface. Question 29. The command default-information originate in OSPF is used to: A) Advertise a static default route into OSPF. B) Remove all default routes from the LSDB. C) Set the router’s default gateway. D) Change the OSPF router ID. Answer: A Explanation: This command injects a static default route (0.0.0.0/0) into OSPF so other routers can learn it. Question 30. Which OSPF timer adjustment would most quickly detect a failed neighbor? A) Increase Hello interval. B) Decrease Hello interval and proportionally decrease Dead interval. C) Increase Dead interval only. D) Disable Hello packets. Answer: B Explanation: Faster Hello packets reduce the time to notice a missing Hello; the Dead interval must remain at least 4 × Hello.
Answer: B Explanation: show ip ospf neighbor lists each neighbor, interface, and adjacency state. Question 34. To verify which networks OSPF is advertising, you would use: A) show ip ospf interface B) show ip protocols C) show ip ospf database router D) show ip route ospf Answer: B Explanation: show ip protocols shows the networks configured with the network command, the router ID, timers, and other OSPF parameters. Question 35. Which command reveals the LSAs stored in the LSDB for a particular area? A) show ip ospf neighbor B) show ip ospf database C) show ip route ospf D) show ip protocols Answer: B Explanation: show ip ospf database lists LSAs for the specified area and type. Question 36. When troubleshooting OSPF on a point‑to‑point link, the most likely cause of a “Two‑Way” state that never progresses to “Full” is: A) Mismatched Hello/Dead intervals. B) Incorrect OSPF process ID.
C) Using a stub area on the link. D) Enabling OSPF on a loopback interface. Answer: A Explanation: Inconsistent timers prevent the routers from completing the exchange phase. Question 37. OSPF on a non‑broadcast multi‑access (NBMA) network typically requires: A) No DR/BDR election. B) Manual neighbor configuration with neighbor commands. C) Use of the network command with wildcard mask 0.0.0.0. D) Enabling OSPF on the loopback interface only. Answer: B Explanation: NBMA networks do not support multicast; neighbors must be defined explicitly. Question 38. Which OSPF LSA type is originated by an ABR to summarize routes from one area into another? A) Type 1 Router LSA. B) Type 2 Network LSA. C) Type 3 Summary LSA. D) Type 5 External LSA. Answer: C Explanation: Type‑3 Summary LSAs are generated by ABRs to advertise intra‑area routes to other areas. Question 39. In OSPF, a Type 5 LSA is used to: A) Advertise intra‑area routes.
Question 42. Which command creates a virtual link between Area 0 and a non‑contiguous area? A) area 0 virtual-link B) ospf virtual-link C) area virtual-link D) ip ospf virtual-link area Answer: C Explanation: area virtual-link defines a virtual link that tunnels OSPF traffic through an intermediate area. Question 43. In OSPFv3, adjacency is formed using which type of address? A) Global unicast address. B) Link‑local address. C) IPv4 address. D) Loopback address. Answer: B Explanation: OSPFv3 uses IPv6 link‑local addresses for neighbor discovery and Hello exchanges. Question 44. OSPFv3 is enabled on an interface with which command? A) ip ospf area B) ipv6 router ospf C) ipv6 ospf enable D) ipv6 ospf area Answer: B
Explanation: ipv6 router ospf creates the OSPFv3 process; then ipv6 ospf area is entered on the interface. Question 45. Which multicast address does OSPFv3 use for All‑DR‑BDR routers? A) FF02:: B) FF02:: C) FF02:: D) FF02:: Answer: B Explanation: FF02::6 is the All‑DR‑BDR multicast address for OSPFv3. Question 46. When configuring OSPFv3, the router ID is still required and is set with: A) router-id under ipv6 router ospf. B) ospf router-id . C) ipv6 router-id . D) No router ID is needed in OSPFv3. Answer: A Explanation: OSPFv3 still uses a 32‑bit router ID, configured with router-id under the OSPFv3 process. Question 47. To prevent OSPF from sending LSAs on a particular interface without disabling OSPF entirely, you would configure: A) no ip ospf process-id. B) passive-interface . C) shutdown on the interface.
B) A routing update that describes the state of a router’s links. C) A packet containing only the router’s hostname. D) An external routing protocol message. Answer: B Explanation: LSAs convey the router’s link‑state information (neighbors, costs, etc.) to build the LSDB. Question 51. Which OSPF LSA type is generated by a router to describe the set of its directly attached networks? A) Type 1 Router LSA. B) Type 2 Network LSA. C) Type 3 Summary LSA. D) Type 4 ASBR Summary LSA. Answer: A Explanation: Type 1 Router LSAs list the router’s interfaces, metrics, and attached networks. Question 52. The OSPF “Designated Router” (DR) on a broadcast network sends LSUs to: A) All routers directly (multicast 224.0.0.5). B) Only the BDR. C) Only the routers that are not DR/BDR (multicast 224.0.0.5). D) No one; it only receives LSUs. Answer: C Explanation: The DR multicasts LSUs to 224.0.0.5 (All‑SPF‑Routers); non‑DR/BDR routers receive them, while the BDR also receives them.
Question 53. Which OSPF packet type is used during the “Exchange” state to describe LSDB contents? A) Hello. B) Database Description (DBD). C) Link‑State Request (LSR). D) Link‑State Update (LSU). Answer: B Explanation: During Exchange, routers exchange DBD packets to summarize LSAs they possess. Question 54. In OSPF, the “Loading” state occurs when a router: A) Has just sent a Hello packet. B) Is requesting missing LSAs after DBD exchange. C) Has completed SPF calculation. D) Is shutting down OSPF. Answer: B Explanation: Loading follows Exchange; the router sends LSRs for missing LSAs and waits for LSUs. Question 55. Which command displays the OSPF routing table entries on a Cisco router? A) show ip route ospf B) show ip ospf database C) show ip protocols D) show ip ospf interface Answer: A Explanation: show ip route ospf lists routes learned via OSPF, marked with an “O” code.