nerdexam
Juniper

JN0-102 · Question #170

You configured an interface with an IP address and committed the change. You then committed a change that added an exception in a firewall filter to allow this network through the filter. You…

The correct answer is A. rollback 2. To undo the last two committed configuration changes in Junos OS, the rollback 2 command is used.

Configuration Basics

Question

You configured an interface with an IP address and committed the change. You then committed a change that added an exception in a firewall filter to allow this network through the filter. You realize that this work was done on the wrong router. How do you undo all these changes?

Options

  • Arollback 2
  • Brollback 1
  • Crollback 0
  • Drollback 3

How the community answered

(37 responses)
  • A
    78% (29)
  • B
    8% (3)
  • C
    11% (4)
  • D
    3% (1)

Why each option

To undo the last two committed configuration changes in Junos OS, the `rollback 2` command is used.

Arollback 2Correct

The Junos OS configuration stores previous committed configurations, indexed starting from 0 (the current active configuration). `rollback 1` would revert to the configuration before the most recent commit, and `rollback 2` would revert to the configuration before the second-to-last commit, effectively undoing the last two changes.

Brollback 1

`rollback 1` would undo only the most recent commit (the firewall filter change), not both the interface and firewall filter changes.

Crollback 0

`rollback 0` rolls back to the current active configuration, which makes no changes.

Drollback 3

`rollback 3` would revert to the configuration state three commits ago, which is more than necessary to undo the last two changes.

Concept tested: Junos OS configuration rollback

Source: https://www.juniper.net/documentation/us/en/software/junos/junos-cli/topics/topic-map/cli-junos-overview.html#d19e1865

Topics

#rollback configuration#commit history#Junos configuration

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice