Question 244 of 514
Routing FundamentalshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to configure a static route to 10.1.1.0/24 with next-hop 192.168.1.1 and preference 5. This works because Junos uses the route preference value to select the best route when multiple protocols know the same destination; a lower preference is more preferred. By setting the static route preference to 5—well below the default OSPF preference of 10 or BGP’s 170—you force traffic through the specified next-hop, effectively overriding the dynamic route with static route preference. On the JNCIA-Junos exam, this tests your understanding of route selection logic and the `preference` statement under `edit routing-options static`. A common trap is assuming any static route automatically wins over dynamic ones, but without an explicit lower preference, the dynamic route with a lower default preference (like OSPF’s 10) will still be chosen. Memory tip: think “5 is alive” for static routes—set it to 5 to keep your static route preferred and alive over any dynamic protocol.

JNCIA-JUNOS Routing Fundamentals Practice Question

This JNCIA-JUNOS practice question tests your understanding of routing fundamentals. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A network must forward traffic to 10.1.1.0/24 through a specific next-hop 192.168.1.1, even if a dynamic route with a lower preference is available. Which configuration will achieve this?

Question 1hardmultiple choice
Review the full routing breakdown →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure a static route to 10.1.1.0/24 with next-hop 192.168.1.1 and preference 5.

Configure a static route with preference 5, which is lower than the default dynamic preferences (e.g., OSPF 10, BGP 170). This ensures the static route is preferred. Option B (preference 15) would be higher than OSPF, so static would not win. Option C could work but is not the simplest. Option D does not affect route selection across protocols.

Key principle: OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure the dynamic protocol to export the route with a metric of 1.

    Why it's wrong here

    Metric is not compared across protocols; preference is used.

  • Configure a static route to 10.1.1.0/24 with next-hop 192.168.1.1 and preference 5.

    Why this is correct

    Preference 5 is lower than most dynamic defaults, so static will be active.

    Related concept

    OSPF neighbours must agree on key parameters.

  • Configure a filter to reject the dynamic route.

    Why it's wrong here

    This could work but is more complex and not the intended method.

  • Configure a static route to 10.1.1.0/24 with next-hop 192.168.1.1 and preference 15.

    Why it's wrong here

    Preference 15 is higher than OSPF's 10, so OSPF would still win.

Common exam traps

Common exam trap: OSPF can fail even when IP connectivity looks correct

OSPF neighbour formation depends on matching areas, timers, network type, authentication and passive-interface behaviour. Do not choose an answer only because the devices can ping.

Detailed technical explanation

How to think about this question

OSPF questions usually test the details that control adjacency and route selection. Read the neighbour state, area, router ID and interface configuration before deciding what is wrong.

KKey Concepts to Remember

  • OSPF neighbours must agree on key parameters.
  • Router ID selection can affect neighbour relationships and LSDB output.
  • OSPF cost influences the preferred path.
  • A route can appear in OSPF information but not become the installed route.

TExam Day Tips

  • Check area mismatch first when OSPF adjacency fails.
  • Review passive interfaces when a network is advertised but no neighbour forms.
  • Use show ip ospf neighbor and show ip route clues carefully.

Key takeaway

OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough.

Real-world example

How this comes up in practice

A network engineer at a university connects two campus buildings via a fibre link. Both routers run OSPF, but no adjacency forms — even though both routers can ping each other. The engineer finds one router is in area 0 and the other in area 1. OSPF adjacency requires matching area numbers, hello/dead timers, and network type. IP reachability alone is not enough.

What to study next

Got this wrong? Here's your next step.

Review OSPF neighbour requirements — matching area type, hello and dead timers, network type, stub flags, and authentication. Study show ip ospf neighbor states (INIT, 2-WAY, FULL). Then practise related JNCIA-JUNOS OSPF questions on adjacency and route selection.

Related practice questions

Related JNCIA-JUNOS practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free JNCIA-JUNOS practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this JNCIA-JUNOS question test?

Routing Fundamentals — This question tests Routing Fundamentals — OSPF neighbours must agree on key parameters..

What is the correct answer to this question?

The correct answer is: Configure a static route to 10.1.1.0/24 with next-hop 192.168.1.1 and preference 5. — Configure a static route with preference 5, which is lower than the default dynamic preferences (e.g., OSPF 10, BGP 170). This ensures the static route is preferred. Option B (preference 15) would be higher than OSPF, so static would not win. Option C could work but is not the simplest. Option D does not affect route selection across protocols.

What should I do if I get this JNCIA-JUNOS question wrong?

Review OSPF neighbour requirements — matching area type, hello and dead timers, network type, stub flags, and authentication. Study show ip ospf neighbor states (INIT, 2-WAY, FULL). Then practise related JNCIA-JUNOS OSPF questions on adjacency and route selection.

What is the key concept behind this question?

OSPF neighbours must agree on key parameters.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on JNCIA-JUNOS

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Your Juniper router is running OSPF with multiple neighbors. You have a prefix 10.10.10.0/24 that is being learned via OSPF from two different routers: Router A with metric 30 and Router B with metric 20. The OSPF route from Router B is active. You want to ensure that traffic to 10.10.10.0/24 uses the path through Router A instead, even though it has a higher metric. You cannot change the OSPF metric on Router A. Which action should you take?

medium
  • A.Use a routing policy to increase the preference of the OSPF route from Router B.
  • B.Increase the metric on Router B for that prefix.
  • C.Use a routing policy to reject the OSPF route from Router A.
  • D.Configure a static route to 10.10.10.0/24 pointing to Router A.

Why A: In JUNOS, route preference (administrative distance) determines which route is installed in the routing table when multiple protocols or sources provide the same prefix. By default, OSPF internal routes have a preference of 10. You can use a routing policy to increase the preference of the OSPF route from Router B (making it less preferred), which will cause the route from Router A (with its default preference of 10) to become active, even though its metric is higher. This approach does not require changing the OSPF metric or removing the route from Router A.

Variation 2. A router has an OSPF route to 10.10.10.0/24 with preference 10 and a static route to the same prefix with preference 5. Which route is active in the routing table?

easy
  • A.The OSPF route
  • B.The static route
  • C.Neither route
  • D.Both routes

Why B: The correct answer is B. Junos uses route preference to select the best route. Static routes have a default preference of 5, which is lower than OSPF's internal preference of 10, so the static route is preferred. Option A is wrong because OSPF has a higher preference. Option C is wrong because only one route is active (unless ECMP, but preferences differ). Option D is wrong because one route is active.

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This JNCIA-JUNOS practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIA-JUNOS exam.