Committing a JUNOS Configuration
To save JUNOS Software configuration changes to the configuration database and activate the configuration on the router, use the commit configuration mode command:
When you enter the commit command, the configuration is first checked for syntax errors (commit check). Then, if the syntax is correct, the configuration is activated and becomes the current, operational router configuration.
You can issue the commit command from any hierarchy level.
If the configuration contains syntax errors, a message indicates the location of the error and the configuration is not activated. The error message has the following format:
For example:
You must correct the error before recommitting the configuration. To return quickly to the hierarchy level where the error is located, copy the path from the first line of the error and paste it at the configuration mode prompt at the [edit] hierarchy level.
![]() | Note: Starting with JUNOS Software Release 10.1, CLI commit-time warnings displayed for configuration at the [edit interfaces] hierarchy level are removed and are now logged as system log messages. This change is also applicable to JUNOS Software Releases 10.0R2 and 9.3R4. |
When you commit a configuration, you commit the entire configuration in its current form. If more than one user is modifying the configuration, committing it saves and activates the changes of all the users.
![]() |
|


