[Contents] [Prev] [Next] [Index] [Report an Error]

Synchronizing Routing Engines

If your router has two Routing Engines, you can manually direct one Routing Engine to synchronize its configuration with the other by issuing the commit synchronize command. The Routing Engine on which you execute this command (requesting Routing Engine) copies and loads its candidate configuration to the other (responding Routing Engine). Both Routing Engines then perform a syntax check on the candidate configuration file being committed. If no errors are found, the configuration is activated and becomes the current operational configuration on both Routing Engines.

The commit synchronize command does not work if the responding Routing Engine has uncommitted configuration changes. However, you can enforce commit synchronization on the Routing Engines by using the force option. When you issue the commit synchronize command with the force option from one Routing Engine, the configuration sessions on the other Routing Engine will be terminated and its configuration synchronized with that on the Routing Engine from which you issued the command.

Note: We recommend that you use the force option only if you are unable to resolve the issues that caused the commit synchronize command to fail.

For example, if you are logged in to re1 (requesting Routing Engine) and you want re0 (responding Routing Engine) to have the same configuration as re1, issue the commit synchronize command on re1. re1 copies and loads its candidate configuration to re0. Both Routing Engines then perform a syntax check on the candidate configuration file being committed. If no errors are found, re1's candidate configuration is activated and becomes the current operational configuration on both Routing Engines.

Note: When you issue the commit synchronize command, you must use the groups re0 and re1. For information about how to use the apply groups statement, see Applying a Configuration Group.

The responding Routing Engine must be running JUNOS Release 5.0 or later.

For information about issuing the commit synchronize command on a routing matrix, see the JUNOS System Basics Configuration Guide.

To synchronize a Routing Engine's current operational configuration file with the other, log in to the Routing Engine from which you want to synchronize and issue the commit synchronize command:

[edit]
user@host# commit synchronize
commit complete
[edit]
user@host#

Note: You can also add the commit synchronize statement at the [edit system] hierarchy level so that a commit command automatically invokes a commit synchronize command by default. For more information, see the JUNOS System Basics Configuration Guide.

To enforce a commit synchronize on the Routing Engines, log in to the Routing Engine from which you want to synchronize and issue the commit synchronize command with force option:

[edit]
user@host# commit synchronize force
re0:
re1:
commit complete
re0:
commit complete
[edit]
user@host#

Note: If you have nonstop routing enabled on your router, you must issue the commit synchronize command from the master Routing Engine after you make any changes to the configuration. If you issue this command on the backup Routing Engine, the JUNOS system software displays a warning and commits the configuration.


[Contents] [Prev] [Next] [Index] [Report an Error]