For an EX6200 switch or an EX8200 switch with redundant Routing Engines, you can minimize disruption to network operation during a Junos OS upgrade by upgrading the Routing Engines separately, starting with the backup Routing Engine.
![]() | Note: If your EX8200 switch is running Junos OS Release 10.4 or later, you can upgrade the software packages on both Routing Engines with a single command and with minimal network disruption by using nonstop software upgrade (NSSU) instead of this procedure. See Upgrading Software on an EX8200 Standalone Switch Using Nonstop Software Upgrade (CLI Procedure). |
![]() | Warning: If graceful routing engine switchover (GRES) or nonstop active routing (NSR) is enabled when you initiate a software installation, the software does not install properly. Make sure you disable GRES before you begin the software installation by using the deactivate chassis redundancy graceful-switchover command in configuration mode. If GRES is enabled, it will be removed with the redundancy command. By default, NSR is disabled. If NSR is enabled, remove the nonstop-routing statement from the [edit routing-options] hierarchy level to disable it. |
To upgrade the software package on an EX6200 switch or an EX8200 switch with one installed Routing Engine, see Installing Software on an EX Series Switch with a Single Routing Engine (CLI Procedure).
To upgrade redundant Routing Engines, you first install the new Junos OS release on the backup Routing Engine while keeping the currently running software version on the master Routing Engine. After making sure that the new software version is running correctly on the backup Routing Engine, you switch device control to the backup Routing Engine. Finally, you install the new software on the new backup Routing Engine.
To upgrade Junos OS on the switch, perform the following tasks:
Perform the following steps before installing the software:
For information on logging in to the Routing Engine through the console port, see Connecting and Configuring an EX Series Switch (CLI Procedure).
Start the CLI from the shell prompt:
user@switch:RE% cli
{master}
user@switch>Enter configuration mode:
user@switch> configure
{master}[edit]
user@switch#{master}[edit]
user@switch# delete routing-options nonstop-routing{master}[edit]
user@switch# deactivate chassis redundancy graceful-switchover
{master}[edit]
user@switch# commit synchronize![]() | Note: To ensure the most recent configuration changes are committed before the software upgrade, perform this step even if nonstop active routing and graceful Routing Engine switchover were previously disabled. |
Exit the CLI configuration mode:
[edit]
user@switch# exit
After you have prepared the switch for software installation, install the software on the backup Routing Engine. During the installation, the master Routing Engine continues operations, minimizing the disruption to network traffic.
Install the new software package:
user@switch> request system software add /var/tmp/package.tgz
![]() | Note: To abort the installation, do not reboot your device; instead, finish the installation and then issue the request system software delete package.tgz command, where package.tgz is, for example, jinstall-ex-8200-10.2R1.8-domestic-signed.tgz. This is your last chance to stop the installation. |
Reboot to start the new software:
user@switch> request system reboot
Reboot the system? [yes, no] (no) yes
![]() | Note: You must reboot the switch to load the new installation of the Junos OS. |
user@switch> show version
To transfer control to the backup Routing Engine and then upgrade or downgrade the master Routing Engine software:
![]() | Caution: Because graceful Routing Engine switchover is disabled, this switchover causes all line cards in the switch to reload. All network traffic passing through these line cards is lost during the line card reloads. |
user@switch> request chassis routing-engine master switch
user@switch> show chassis routing-engine
You will see:
Routing Engine status:
Slot 0:
Current state Backup
Election priority Master (default)
Routing Engine status:
Slot 1:
Current state Master
Election priority Backup (default)
Install the new software package:
user@switch> request system software add package.tgz
Reboot the Routing Engine:
user@switch> request system reboot
Reboot the system? [yes, no] (no) yes
[edit]
user@switch# activate chassis redundancy graceful-switchover
Re-enabling graceful Routing Engine switchover allows any future Routing Engine switchovers to occur without loss of any network traffic.
[edit]
user@switch# set routing-options nonstop-routing
![]() | Note: Automatic commit synchronization is a requirement for nonstop active routing. If you have not yet enabled it, do so with the set system commit synchronize command. |
[edit]
user@switch# commit synchronize
If you want to return routing control to the Routing Engine that was the master Routing Engine at the beginning of the procedure (the default master Routing Engine), perform the next task.
The switch can maintain normal operations with the Routing Engine in slot 1 acting as the master Routing Engine after the software upgrade, so only perform this task if you want to return routing control to the default master Routing Engine in slot 0.
Transfer routing control back to the default master Routing Engine:
user@switch> request chassis routing-engine master switch
user@switch> show chassis routing-engine
You will see:
Routing Engine status:
Slot 0:
Current state Master
Election priority Master (default)
Routing Engine status:
Slot 1:
Current state Backup
Election priority Backup (default)