JN0-106 Junos Configuration Basics Practice Question
Exhibit
user@router> show configuration | compare [edit interfaces ge-0/0/1 unit 0 family inet] + address 10.0.0.1/24; - address 10.0.0.2/24;
Refer to the exhibit. What is the effect of the pending changes?
⚠ Common exam trap
The trap here is that candidates may misinterpret the 'replace:' tag as an addition rather than a replacement, leading them to think both IP addresses will coexist, or they may assume no changes are shown because they overlook the 'replace:' indicator.
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
✓
The IP address 10.0.0.2 will be replaced by 10.0.0.1 after commit.
The candidate configuration shows that the IP address 10.0.0.2 is being deleted and replaced with 10.0.0.1 on interface ge-0/0/0. In Junos, pending changes are staged in the candidate configuration and only take effect after a commit. The 'replace:' tag indicates that the existing address 10.0.0.2 will be removed and 10.0.0.1 will be added upon commit.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The IP address 10.0.0.2 will be replaced by 10.0.0.1 after commit.
Why this is correct
The plus sign next to 10.0.0.1 and the minus sign next to 10.0.0.2 in the `show | compare` output indicate that 10.0.0.2 is scheduled for deletion while 10.0.0.1 is scheduled for addition. Because both lines refer to the same address family (inet) and the same interface, the resulting operation is a replacement, not an addition. After commit, the active configuration will therefore have only 10.0.0.1 on the interface, with no trace of 10.0.0.2.
- ✗
The comparison shows no changes.
Why it's wrong here
The `show | compare` command always displays the differences between the candidate configuration and the active (committed) configuration. If there were no changes, the command would produce empty output or only a message indicating no differences. The exhibit clearly shows both a removed address (10.0.0.2, marked with '-') and an added address (10.0.0.1, marked with '+'), so the statement that there are no changes is factually incorrect.
- ✗
The interface will have two IP addresses: 10.0.0.1 and 10.0.0.2.
Why it's wrong here
In Junos, an interface can indeed have multiple IP addresses, but only if they are configured as separate `address` statements under the same `family inet` hierarchy. Here, the minus sign on 10.0.0.2 means that statement is being removed, not that it is being retained alongside the new one. The plus sign on 10.0.0.1 means it is being added, and the combined diff represents a single replace operation, so after commit only 10.0.0.1 will exist on the interface.
- ✗
The candidate configuration will be empty after commit.
Why it's wrong here
The candidate configuration contains the new address 10.0.0.1, as shown by the plus sign in the exhibit. The `show | compare` output only displays the changed statements, not the entire candidate configuration, so the absence of other statements in the excerpt does not mean the candidate is empty. After commit, the candidate becomes the active configuration and will contain 10.0.0.1, along with any other unchanged configuration that exists on the device.
Go deeper
Related to this question
About these practice questions
One of 326 original JN0-106 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.