The router configuration is saved using a commit model: a candidate configuration is modified as desired and then committed to the system. Once committed, the router checks the configuration for syntax errors and if no errors are found, the configuration is saved as juiper.conf.gz and activated. The former active configuration file is saved as the first rollback configuration file (juniper.conf.1.gz) and all other rollback configuration files are incremented by 1. For example, juniper.conf.1.gz is incremented to juniper.conf.2.gz, making it the second rollback configuration file. The router can have a maximum of 49 rollback configurations (1–49) saved on the system.
On the router, the active configuration fileand the first three rollback files (juiper.conf.gz.1, juiper.conf.gz.2, juiper.conf.gz.3 ) are located in the /config directory. If the recommended rescue file, rescue.conf.gz, is saved on the system, this file should also be saved in the /config directory. The factory default files are located in the /etc/config directory.
There are two mechanisms used to propagate the configurations between Routing Engines within a routing platform:
To synchronize a router’s configurations, use the CLI commit synchronize command. If one of the Routing Engines is locked, the synchronization fails. In the event of a failed synchronization due to a locked configuration file, you can use the commit synchronize force command. This command overrides the lock and synchronizes the configuration files.
![]() |
Note: When using the CLI commit synchronize force command on a multi-chassis platform, the forced synchronization of the configuration files does not affect the distribution of the configuration file across the routing plane. If a configuration file is locked on a router remote from the router where the command was issued, the synchronization fails on the remote router. You need to clear the lock and reissue the synchronization command. |