56 questions · OSPF topic · All types, answers revealed
Which TWO features characterize OSPFv3 compared to OSPFv2? (Choose two)
Correct. The router ID format is unchanged between OSPFv2 and OSPFv3.
Why this answer
OSPFv3 is designed for IPv6, runs directly over IPv6 using link-local addresses for neighbor discovery, and decouples router IDs from IPv6 addresses (though they remain 32-bit integers).
You are configuring authentication for OSPF on a Junos router using MD5. Where must the MD5 key ID and password be defined in the configuration hierarchy?
Correct. MD5 keys are configured under the specific OSPF interface block in Junos.
Why this answer
OSPF MD5 authentication keys in Junos are defined directly under the interface configuration block using the 'authentication-type md5' and 'authentication-key key-id <id> key <password>' statements.
Which command allows an administrator to view the OSPF link-state database (LSDB) summary on a Junos device?
Correct. This command displays the LSDB entries on a Junos router.
Which TWO packet types are utilized during the OSPF database synchronization process after neighbor adjacencies are established? (Choose two)
Correct. DBD packets summarize LSDB headers during synchronization.
Why this answer
Once adjacencies move past the 2-Way state, Database Description (DBD) and Link-State Request (LSR) packets are used to synchronize the link-state databases between neighbors.
An administrator is troubleshooting an OSPF adjacency issue on an interface connecting two Juniper vMX routers. Both routers are stuck in the 2-Way state on a broadcast segment. Which configuration parameter must match on both routers for the adjacency to progress beyond 2-Way?
OSPF requires hello and dead intervals to match on an interface for neighbors to establish an adjacency.
Why this answer
On broadcast networks, OSPF routers elected as DR and BDR form adjacencies with all routers, while DROther routers form adjacencies only with the DR and BDR. However, basic OSPF interface parameters like Hello and Dead intervals, area ID, and authentication must match for any adjacency to form. Specifically, the Hello and Dead timers must match across the link.
You are troubleshooting an OSPF network where an NSSA area is connected to the backbone via an ABR. External routes are being injected into the NSSA by an ASBR. Which router is responsible for translating Type 7 LSAs into Type 5 LSAs before flooding them into the backbone area?
The ABR connected to the NSSA performs the translation of Type 7 LSAs to Type 5 LSAs.
Which OSPF packet type is used to acknowledge the receipt of Link-State Updates (LSUs) to ensure reliable flooding?
Correct. LSAck packets provide reliability for OSPF flooding.
Why this answer
Link-State Acknowledgment (LSAck) packets (Packet Type 5) explicitly acknowledge receipt of LSUs to maintain reliable database synchronization.
Which TWO actions occur during OSPF link-state database flooding on a Junos routing device? (Choose two)
Correct. LSDBs are updated and acknowledged via LSAcks.
An engineer needs to prevent Type 4 and Type 5 LSAs from entering a specific OSPF area while still allowing external routes to be summarized via default routing. Which area type should be configured?
Correct. A totally stubby area blocks Type 3, 4, and 5 LSAs and uses a default route for external destinations.
Why this answer
A Totally Stubby Area blocks Type 3, Type 4, and Type 5 LSAs, and automatically injects a default route (Type 3) into the area to reach destinations outside the area.
You are configuring an OSPF interface on a Junos router and want to ensure that the interface never participates in DR/BDR election, always acting as a point-to-point connection. Which interface type should you explicitly configure?
Correct. The interface-type p2p command forces point-to-point behavior and disables DR/BDR elections.
Why this answer
In Junos, setting the OSPF interface type to 'point-to-point' forces the protocol to treat the link as point-to-point, bypassing the DR/BDR election process entirely even if underlying media is broadcast.
Which TWO OSPF packet types are used for reliable flooding and direct acknowledgment of Link State Advertisements? (Choose two.)
LSU packets flood LSAs reliably across the network.
Why this answer
OSPF uses LSU (Link State Update) packets, which contain actual LSAs, and LSAck (Link State Acknowledgment) packets to confirm receipt, ensuring reliable flooding across the network.
Correct. Type 3 LSAs advertise inter-area routes between areas.
Why this answer
Type 3 LSAs (Network Summary LSAs) are generated by ABRs to advertise networks originating in one area to other areas within the OSPF routing domain.
Which TWO troubleshooting commands help identify OSPF route installation issues in the Junos routing table? (Choose two)
Correct. Displays active routing table entries learned via OSPF.
Why this answer
Commands like 'show route protocol ospf' and 'show route table inet.0' display routes learned and installed by OSPF.
Which Junos command displays detailed information about OSPF neighbor states, including dead timer countdowns and address bindings?
Correct. This command displays detailed information regarding OSPF neighbors.
Why this answer
The command 'show ospf neighbor detail' provides comprehensive operational details about OSPF neighbor relationships, state, timers, and interface bindings.
Which THREE types of routers can act as an OSPF Autonomous System Boundary Router (ASBR)? (Choose three)
Correct. An ABR can also act simultaneously as an ASBR.
Which command is used on a Junos device to clear the OSPF database and force a re-synchronization with neighbors?
Correct. This command clears and resets the OSPF database.
Why this answer
The 'clear ospf database' command clears and refreshes the OSPF link-state database on a Junos device.
Which TWO states are valid OSPF operational adjacency states seen in Junos operational outputs? (Choose two)
Correct. 2-Way indicates bidirectional communication has been established.
Why this answer
Valid OSPF states include Down, Init, 2-Way, ExStart, Exchange, Loading, and Full.
What is the primary function of the OSPF Designated Router (DR) on a broadcast network segment?
Correct. The DR and BDR limit adjacency bloat and reduce flooding traffic on broadcast/NBMA networks.
Why this answer
The DR reduces network traffic and LSA flooding overhead by acting as a central focal point for exchanging routing information and generating the Network LSA (Type 2) on multi-access segments.
An OSPF area contains routers running Junos OS where external routes must be imported into the OSPF domain from a BGP core. However, the area must not accept external AS-external LSAs (Type 5) from other areas, but must allow routers within this area to originate external routes themselves. Which area type fulfills this requirement?
Correct. NSSA allows external routing information to be injected via Type 7 LSAs without accepting Type 5 LSAs.
Why this answer
A Not-So-Stubby Area (NSSA) blocks Type 5 AS-external LSAs from the backbone, but allows locally redistributed external routes to be translated into Type 7 LSAs and flooded within the NSSA.
An administrator needs to configure an OSPF stub area on a Juniper router. Which THREE characteristics apply to a standard OSPF stub area? (Choose three.)
Stub ABRs automatically originate a default route to replace external routes.
Why this answer
Standard stub areas block Type 5 AS-external LSAs and Type 4 summary LSAs, using a default route generated by the ABR to reach external destinations instead.
During the establishment of an OSPF adjacency, two routers exchange Database Description (DBD) packets. What is the primary purpose of the DBD packet exchange in the OSPF protocol sequence?
DBD packets provide a summary of the LSDB so routers can identify missing entries.
Why this answer
DBD packets contain a summary of the link-state database (LSDB), listing the headers of each LSA. This allows receiving routers to compare their local LSDBs and request missing or more recent LSAs using Link State Request (LSR) packets.
An enterprise network has redundant ABRs connecting Area 1 to Area 0. To prevent suboptimal routing and unnecessary Type 3 LSA flooding, an administrator decides to filter inter-area summary routes on the ABR using a Junos policy. Which configuration component is required to apply an export policy to OSPF summary routes on an ABR?
Correct. Prefix-export policies control which summarized prefixes are advertised out of or into an area.
Why this answer
Inter-area summarization and export filtering on Junos ABRs are configured using the 'area <name> prefix-export' or range policies under the OSPF hierarchy.
An administrator is configuring OSPF on a Junos device and notices that two routers on a broadcast segment are stuck in the 2-Way state. What is the most likely cause of this behavior on a broadcast network?
Correct. DROther routers only form full adjacencies with the DR and BDR, remaining in 2-Way with other DROther routers.
An administrator needs to modify the OSPF cost on a specific Junos interface to influence traffic engineering without changing the reference bandwidth globally. Which command accomplishes this?
Correct. The metric statement overrides the calculated cost for that specific interface.
When calculating OSPF path costs in a network containing high-speed links (such as 10Gbps and 40Gbps interfaces), what default reference bandwidth does Junos use, and what configuration adjustment is typically required to differentiate costs accurately?
Correct. The default reference bandwidth is 100 Mbps, which causes high-speed links to share a minimum cost of 1 unless adjusted.
Why this answer
Junos uses a default OSPF reference bandwidth of 100 Mbps (10^8). Because 100 Mbps results in a cost of 1 for any link 100 Mbps or faster, administrators must increase the reference bandwidth (e.g., to 100 Gbps) so that 10G, 40G, and 100G interfaces have distinct, meaningful integer costs.
In an OSPF NSSA configuration on a Junos device, which router is specifically responsible for translating Type 7 LSAs into Type 5 LSAs when propagating routes out of the NSSA into the backbone?
Correct. The NSSA ABR performs the translation of Type 7 to Type 5 LSAs.
Why this answer
The NSSA Area Border Router (ABR) that has the highest router ID acts as the NSSA translator, converting Type 7 LSAs to Type 5 LSAs for the backbone area.
You are troubleshooting an OSPF network and notice that a router's OSPF state is stuck in 'ExStart'. What is the most common reason for this adjacency state issue?
Correct. MTU mismatches prevent DBD packet exchange, leaving routers stuck in ExStart.
Why this answer
Being stuck in the ExStart/Exchange state is typically caused by an MTU mismatch between the neighboring interfaces, or a mismatch in the master/slave negotiation parameters.
Correct. LSA MaxAge is 3600 seconds, at which point it is flushed from the database.
Why this answer
When an LSA reaches its MaxAge of 3600 seconds without being refreshed by its originator, or when an explicit max-age update is received indicating the route has gone down, routers flood the MaxAge LSA to flush it from the LSDB.
You are tasked with tuning OSPF convergence times on a Juniper EX Series switch. Which configuration command hierarchy allows you to modify the OSPF Hello and Dead intervals on a specific interface?
The hello-interval and dead-interval commands are nested under the OSPF interface hierarchy.
Why this answer
In Junos OS, OSPF interface-specific parameters such as hello-interval and dead-interval are configured under the [edit protocols ospf area <area-id> interface <interface-name>] hierarchy.
Correct. Stub areas block Type 4 LSAs since external ASBRs reside outside the stub.
Why this answer
A standard Stub Area blocks Type 5 AS-external LSAs, Type 4 ASBR summary LSAs, and depending on implementation nuances, summarizes inter-area traffic via default routes while blocking external information. Specifically, standard stub areas block Type 4 and Type 5 LSAs, and replace external routes with a default route (often via Type 3 summarization behavior). Wait, let's look closely at standard stub areas: they block Type 4 and Type 5 LSAs.
Totally stubby areas also block Type 3 inter-area LSAs. Let's frame the options correctly for a standard stub area blocking Type 4, Type 5, and external routing features.
Correct. Type 4 LSAs advertise the location of the ASBR to other areas.
Why this answer
Type 4 LSAs (ASBR Summary LSAs) are generated by an ABR to advertise the router ID of an ASBR to areas other than the one where the ASBR resides.
You are configuring OSPF route summarization on an ABR in a Junos environment. You want to summarize routes from Area 1 into Area 0. Which Junos configuration hierarchy is used to define this summary?
Correct. The area range statement under the source area is used on an ABR to summarize prefixes entering the backbone.
Why this answer
Area summarization on an OSPF Area Border Router (ABR) in Junos is configured under the [edit protocols ospf area <area-name> prefix-export] or area range statement depending on Junos version, specifically using 'area <id> range <prefix>' under OSPF protocols.
Which TWO packet types are sent reliably (requiring acknowledgment) by OSPF routers during communication? (Choose two)
Correct. LSUs require LSAck acknowledgments.
Why this answer
Reliable OSPF packets include Database Description (DBD), Link-State Request (LSR), and Link-State Update (LSU) packets, all of which require explicit or implicit acknowledgments to ensure reliable delivery. Hello and LSAck packets do not require acknowledgments.
An OSPF network running on Junos has multiple equal-cost paths to a destination. By default, how many equal-cost paths does Junos OSPF install into the forwarding table (inet.0)?
Correct. The default maximum ECMP paths for OSPF in Junos is 16.
Why this answer
By default, Junos supports up to 16 equal-cost multi-path (ECMP) routes for OSPF, though this can be tuned via routing-options.
Type 2 LSAs describe multi-access networks and stay within the local area.
Why this answer
Type 1 (Router LSAs) and Type 2 (Network LSAs) describe the topology within a single area and do not cross ABRs. Type 7 (NSSA external LSAs) are also constrained within an NSSA area until translated by the ABR.
Which LSA type is originated by a Designated Router (DR) on a broadcast or NBMA network to describe all the routers attached to that multi-access segment?
Correct. Type 2 LSAs describe multi-access network connections and attached routers.
Why this answer
Type 2 LSAs (Network LSAs) are generated by the DR to list all routers attached to a multi-access network segment.
Type 5 LSAs carry routing information for destinations external to the OSPF domain.
Why this answer
Type 5 LSAs, also known as AS-external-LSAs, are originated by the Autonomous System Boundary Router (ASBR) to advertise destinations external to the OSPF autonomous system.
Which OSPF area is mandatory in any multi-area OSPF routing architecture?
Correct. Area 0 is the required backbone transit area in OSPF.
Why this answer
Area 0, also known as the backbone area, is mandatory in multi-area OSPF architectures. All other areas must connect directly or via virtual links to Area 0.
Which TWO statements correctly describe OSPF Area Border Routers (ABRs) in a Junos environment? (Choose two)
Correct. OSPF maintains distinct LSDBs per area on routers connected to multiple areas.
Why this answer
ABRs connect non-backbone areas to the backbone (Area 0) and maintain separate link-state databases for each area they belong to. They are also responsible for generating Type 3 summary LSAs between areas.
Correct. Type 1 LSAs stay within their originating area.
Why this answer
Type 1 (Router) and Type 2 (Network) LSAs describe the internal topology of a single area and are strictly contained within that area, whereas Type 3 LSAs cross ABRs.
An administrator implements OSPF on a Junos router with virtual links to span a disconnected non-backbone area across a non-backbone transit area to reach Area 0. What is a key design best practice regarding OSPF virtual links in enterprise networks?
Correct. Virtual links are considered a design workaround and are best avoided in stable, well-architected networks.
Why this answer
Virtual links should be used strictly as temporary or fallback solutions because troubleshooting them is complex, and they introduce fragility into the OSPF backbone topology.
Correct. If no loopback has an IPv4 address, the highest physical interface IP is chosen.
Why this answer
When no explicit router ID is configured, Junos picks the highest IPv4 address configured on any loopback interface (lo0), and failing that, the highest IPv4 address on any active physical interface.
Which OSPF packet type is responsible for discovering neighbors and maintaining adjacencies on a Junos device?
Correct. Hello packets discover neighbors and maintain adjacencies.
Why this answer
OSPF Hello packets (Packet Type 1) are sent periodically to discover neighbors, establish bidirectional communication, and maintain adjacencies.
During OSPF database synchronization, two Junos routers exchange Database Description (DBD) packets. One router repeatedly sends DBD packets with the master/slave bit set incorrectly or encounters sequence number mismatches, causing the adjacency to loop in the Exchange state. Which OSPF packet type is immediately sent by a router to request missing link-state information once the ExStart/Exchange transition completes?
Correct. LSR packets are used to request specific LSAs identified during the DBD exchange phase.
Why this answer
Once DBD exchange completes and master/slave negotiation finishes, routers transition to the Loading state and use Link-State Request (LSR) packets (Type 3) to request more detailed or missing LSAs from their neighbor.
Correct. Type 1 LSAs describe local links and states for a router inside its area.
Why this answer
Type 1 LSAs describe the state of the router's links (interfaces) that connect to a given area, including their costs and neighbor relationships.
You are configuring OSPF on a Junos device and notice that Type 3 LSAs are not being generated or propagated into a specific area. When examining the configuration under protocols ospf, you see that the area is defined with the no-summaries parameter. Which area type has been configured?
The 'no-summaries' option configures a totally stubby area, blocking Type 3, 4, and 5 LSAs.
Why this answer
In Junos OS, the 'no-summaries' parameter under 'set protocols ospf area' defines a Stub area as a totally stubby area, which suppresses Type 3 summary LSAs from being injected into the area by the ABR.
Which TWO commands can an administrator use on a Junos device to verify OSPF interface configurations and operational status? (Choose two)
Correct. Displays OSPF interface summary status.
Why this answer
Commands like 'show ospf interface' and 'show ospf interface detail' provide detailed operational statistics and configurations for OSPF-enabled interfaces.
You are configuring OSPF redistribution on a Junos router and want to ensure that external routes imported from a static routing table retain an escalating external metric. Which external route metric type (E1 or E2) should you choose if you want the internal cost to be added to the external cost during path selection?
Correct. E1 metrics incorporate both the external cost and the internal OSPF cost to the ASBR.
Why this answer
External Type 1 (E1) routes add the internal OSPF cost to the external redistribution cost, whereas External Type 2 (E2) routes use only the external cost, ignoring internal path costs.
You are troubleshooting an OSPF adjacency issue between two Juniper EX Series switches. One switch logs an error stating 'OSPF packet received with mismatched area ID'. Where in the Junos CLI should you check and correct this parameter?
Correct. Area assignments are applied directly to interfaces or under the area hierarchy block.
An operator executes the 'show ospf database' command on a Junos device and notices multiple Type 2 Network LSAs. Under which specific network topology condition are Type 2 LSAs generated?
Type 2 Network LSAs are generated by the DR for multi-access networks.
Why this answer
Type 2 Network LSAs are generated by the Designated Router (DR) on multi-access broadcast or non-broadcast multi-access (NBMA) networks to describe all routers attached to that specific network segment.
An administrator wants to configure an OSPF Not-So-Stubby Area (NSSA) on a Junos router. Which THREE characteristics distinguish an NSSA from a standard OSPF Stub Area? (Choose three)
Correct. Like stub areas, NSSAs block external Type 5 LSAs from outside.
Why this answer
NSSAs allow injection of external routes via Type 7 LSAs, require an NSSA ABR to translate Type 7 to Type 5 LSAs, and block external Type 5 LSAs from the backbone while permitting local external origins.
You are configuring OSPF on a Junos device and need to ensure that the router prefers internal OSPF intra-area paths over inter-area paths, and inter-area paths over external paths. According to OSPF route preference rules, what is the evaluation order?
Correct. Intra-area routes are preferred over inter-area, which are preferred over external types.
Why this answer
OSPF path preference order is strictly: Intra-area (Type 1/2), Inter-area (Type 3), External Type 1 (E1), and External Type 2 (E2).
Correct. Present in all areas.
Why this answer
A standard non-backbone area router contains Type 1 (Router), Type 2 (Network if multi-access), Type 3 (Summary), Type 4 (ASBR Summary), and Type 5 (AS-external) LSAs in its database.
A Junos router running OSPF is configured with graceful restart helper mode enabled. What is the primary role of an OSPF graceful restart helper router during a control plane restart of a neighboring router?
Correct. Helper mode maintains forwarding and holds adjacency state during a peer's restart.
Why this answer
Helper routers continue forwarding traffic based on existing routes and assist the restarting router by maintaining adjacencies and suppressing LSA re-origination until the restarting control plane recovers.
Ready to test yourself?
Try a timed practice session using only OSPF questions.