A network engineer is configuring a new Juniper device and needs to ensure that the configuration is saved persistently across reboots. Which command should be used?
Trap 1: save
In Junos, `save` is not a command for activating configuration changes; it is typically used within configuration mode to write the candidate configuration to a file (e.g., `/var/tmp/config`) for backup or archive. This action only copies the configuration text to the specified destination—it does not validate, activate, or persist the changes as the running configuration. Therefore, using `save` would leave the device running its previous active configuration and the changes vulnerable to loss.
Trap 2: request system reboot
`request system reboot` is a valid operational command that restarts the Junos device, but it never saves or activates the candidate configuration. If you have made configuration changes and only issued this command, those changes are discarded because they exist only in the candidate store until committed. A reboot loads the last committed configuration from the persistent store, so the device returns to the previous active state—it does not preserve uncommitted edits.
Trap 3: show configuration
The `show configuration` command displays the current active configuration (or, with the `| display` modifiers, the candidate configuration) as formatted text for inspection. It is purely read-only and performs no writes to any configuration database, so it cannot persist changes across reboots or alter the running state. This command is useful for verification, but it is not a substitute for committing configuration.
- A
save
Why wrong: In Junos, `save` is not a command for activating configuration changes; it is typically used within configuration mode to write the candidate configuration to a file (e.g., `/var/tmp/config`) for backup or archive. This action only copies the configuration text to the specified destination—it does not validate, activate, or persist the changes as the running configuration. Therefore, using `save` would leave the device running its previous active configuration and the changes vulnerable to loss.
- B
request system reboot
Why wrong: `request system reboot` is a valid operational command that restarts the Junos device, but it never saves or activates the candidate configuration. If you have made configuration changes and only issued this command, those changes are discarded because they exist only in the candidate store until committed. A reboot loads the last committed configuration from the persistent store, so the device returns to the previous active state—it does not preserve uncommitted edits.
- C
show configuration
Why wrong: The `show configuration` command displays the current active configuration (or, with the `| display` modifiers, the candidate configuration) as formatted text for inspection. It is purely read-only and performs no writes to any configuration database, so it cannot persist changes across reboots or alter the running state. This command is useful for verification, but it is not a substitute for committing configuration.
- D
commit
The `commit` command is the only way to make candidate configuration changes active and permanent in Junos. It runs full configuration validation and, if successful, installs the candidate into the active configuration store, which is what loads at reboot. Because `commit` persists the changes to storage and activates them at once, it is the required final step after editing any configuration.