JN0-106 Junos Configuration Basics Practice Question
An administrator is configuring a static route to a remote network 10.10.10.0/24 via next-hop 192.168.1.1. Which command correctly adds this route?
⚠ Common exam trap
The trap here is that candidates familiar with Cisco IOS may try to use a separate `mask` parameter (as in Option B) or place the route directly under `routing-options route` (as in Option A), failing to recognize Junos requires the `static route` hierarchy and CIDR notation in the destination.
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
✓
set routing-options static route 10.10.10.0/24 next-hop 192.168.1.1
The Junos syntax for configuring a static route uses the hierarchy `set routing-options static route <destination-prefix> next-hop <address>`. The prefix must include the subnet mask in CIDR notation (e.g., /24). This command installs a route to 10.10.10.0/24 with next-hop 192.168.1.1 into the routing table.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
set routing-options route 10.10.10.0/24 static next-hop 192.168.1.1
Why it's wrong here
This command incorrectly places the route prefix before the 'static' keyword. Junos uses a strict hierarchy where 'routing-options' is the parent, 'static' is a child of that, and 'route' is a child of 'static'. The correct order is: set routing-options static route 10.10.10.0/24 next-hop 192.168.1.1. As written, this would attempt to create a non-existent node structure and fail to configure the desired static route.
- ✗
set routing-options static route 10.10.10.0 next-hop 192.168.1.1 mask 255.255.255.0
Why it's wrong here
Junos does not accept a separate 'mask' keyword when defining a static route. The route prefix must be specified in CIDR notation (e.g., 10.10.10.0/24) as part of the 'route' statement. Using 'set routing-options static route 10.10.10.0 next-hop 192.168.1.1 mask 255.255.255.0' is Cisco-style syntax, which Junos will reject. The correct command uses the /24 prefix directly.
- ✗
set routing-options static next-hop 192.168.1.1
Why it's wrong here
This configuration is missing the 'route' keyword and the destination prefix. The 'static' hierarchy under 'routing-options' requires at least one 'route' statement to define the destination network. Simply setting a next-hop without a route prefix is invalid and does not create a static route. You must specify the exact destination, such as 'route 10.10.10.0/24'.
- ✓
set routing-options static route 10.10.10.0/24 next-hop 192.168.1.1
Why this is correct
This is the correct Junos syntax for a static route. The hierarchy is 'routing-options static route' followed by the destination prefix in CIDR notation, then the 'next-hop' statement with the gateway address. This configuration installs a route to 10.10.10.0/24 via 192.168.1.1 into the routing table and is the expected format for Junos candidates.
Visual reference
Go deeper
Related to this question
About these practice questions
This JN0-106 question is part of Courseiva's 326-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This JN0-106 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 JN0-106 exam.