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.
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)- A78% (29)
- B8% (3)
- C11% (4)
- D3% (1)
Why each option
To undo the last two committed configuration changes in Junos OS, the `rollback 2` command is used.
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.
`rollback 1` would undo only the most recent commit (the firewall filter change), not both the interface and firewall filter changes.
`rollback 0` rolls back to the current active configuration, which makes no changes.
`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
Community Discussion
No community discussion yet for this question.