Installing Software on EX Series Switches
EX Series devices are delivered with pre-installed Junos operating system (Junos OS). Before you start this procedure, decide which software package you need and download it. For information on which packages to use for which upgrades, see Junos OS and Junos OS Evolved Installation Package Names.
Understanding Software Installation on EX Series Switches
A Juniper Networks EX Series Ethernet Switch is delivered with the Juniper Networks Junos operating system (Junos OS) pre-installed. As new features and software fixes become available, you must upgrade your software to use them. You can also downgrade Junos OS to a previous release.
This topic covers:
- Overview of the Software Installation Process
- Installing Software on a Virtual Chassis
- Installing Software Using Automatic Software Download
- Autoinstalling a Configuration File on an EX2200 or EX3300 Switch from a Disk-on-Key USB Memory Stick
- Installing Software on an EX2300, EX3400, or EX4100 Switch
Overview of the Software Installation Process
An EX Series switch is delivered with a domestic version of Junos OS pre-installed. When you connect power to the switch, it starts (boots) from the installed software.
You upgrade Junos OS on an EX Series switch by copying a software package to your switch or another system on your local network, then use either the J-Web interface or the command-line interface (CLI) to install the new software package on the switch. Finally, you reboot the switch; it boots from the upgraded software. After a successful upgrade, you should back up the new current configuration to a secondary device. You should following this procedure regardless of whether you are installing a domestic or controlled Junos OS package.
During a successful upgrade, the upgrade package removes all files from /var/tmp and completely reinstalls the existing software. It retains configuration files, and similar information, such as secure shell and host keys, from the previous version. The previous software package is preserved in a separate disk partition, and you can manually revert back to it if necessary. If the software installation fails for any reason, such as loss of power during the installation process, the system returns to the originally active installation when you reboot.
Installing Software on a Virtual Chassis
You can connect individual EX Series switches together to form one unit and manage the unit as a single device, called a Virtual Chassis. The Virtual Chassis operates as a single network entity composed of member switches. Each member switch in a Virtual Chassis must be running the same version of Junos OS.
For ease of management, a Virtual Chassis provides flexible methods to upgrade software releases. You can deploy a new software release to all member switches of a Virtual Chassis or to only a particular member switch.
You can also upgrade the software on a Virtual Chassis using nonstop software upgrade (NSSU). NSSU takes advantage of graceful Routing Engine switchover (GRES) and nonstop active routing (NSR) to ensure no disruption to the control plane during the upgrade. You can minimize disruption to network traffic by defining link aggregation groups (LAGs) such that the member links of each LAG reside on different line cards or on different members. During an NSSU, the line cards and Virtual Chassis members are upgraded one at a time, so that traffic continues to flow through the other line cards or members while that line card or member is being upgraded.
Installing Software Using Automatic Software Download
The automatic software download feature uses the DHCP message exchange process to download and install software packages. Users can define a path to a software package on the DHCP server, and then the DHCP server communicates this path to EX Series switches acting as DHCP clients as part of the DHCP message exchange process. The DHCP clients that have been configured for automatic software download receive these messages and, when the software package name in the DHCP server message is different from that of the software package that booted the DHCP client switch, download and install the software package. See Upgrading Software by Using Automatic Software Download for Switches.
Autoinstalling a Configuration File on an EX2200 or EX3300 Switch from a Disk-on-Key USB Memory Stick
You can use an autoinstallation process to configure the software on an EX2200 or EX3300 switch. You can use a configuration file that is in either text format or XML format. If you want to use an XML-formatted file, you use a Junos Space platform to create the configuration file. You place the configuration file on a Disk-on-Key USB memory stick.
Installing Software on an EX2300, EX3400, or EX4100 Switch
Before installing software on an EX2300, EX3400, or EX4100 switch:
-
Ensure that at least 620 MB of disk space is available in the system before downloading the software installation package to the /var/tmp directory. Use the command
show system storage
to get details of the available space. -
If the space available is inadequate, use the command
request system storage cleanup
. Additionally, you can manually delete any other log or unwanted files from the /var/tmp or /var/log directories.
You can now follow the procedure in Installing Software on an EX Series Switch with a Virtual Chassis or Single Routing Engine (CLI Procedure) to complete the software installation.
See the Knowledge Base for more information in regards to storage when upgrading Junos OS on EX2300 and EX3400 switches.
Installing Software on an EX Series Switch with a Virtual Chassis or Single Routing Engine (CLI Procedure)
You can use this procedure to upgrade Junos OS on a single routing engine in any EX Series switch, including all switches that do not support redundant Routing Engines. You can also use this procedure to upgrade software on all EX Series Virtual Chassis, with the exception of the EX8200 Virtual Chassis.
This procedure can be used to upgrade the following switches or Virtual Chassis:
-
EX2200 switch
-
EX2300 switch
-
EX3200 switch
-
EX3300 switch
-
EX3400 switch
-
EX4100 switch
-
EX4200 switch
-
EX4300 switch
-
EX4500 switch
-
EX4550 switch
-
EX6200 switch (single Routing Engine upgrade only)
-
EX8200 switch (single Routing Engine upgrade only)
-
All Virtual Chassis except EX8200 Virtual Chassis
To upgrade software on an EX6200 or EX8200 switch running two Routing Engines, see Installing Software on an EX Series Switch with Redundant Routing Engines (CLI Procedure) or Upgrading Software on an EX6200 or EX8200 Standalone Switch Using Nonstop Software Upgrade (CLI Procedure).
To upgrade software on an EX8200 Virtual Chassis, see Installing Software for All Devices in an EX8200 Virtual Chassis.
To install software upgrades on a switch with a single Routing Engine:
Installing Software on an EX Series Switch with Redundant Routing Engines (CLI Procedure)
You can install software on a switch with redundant Routing Engines in one of two ways:
Perform an NSSU—An NSSU upgrades both Routing Engines with a single command and with a minimum of network disruption. An NSSU takes advantage of GRES and NSR to ensure no disruption to the control plane. You can minimize disruption to network traffic by defining LAGs such that the member links of each LAG reside on different line cards. The line cards are upgraded one at a time, so that traffic continues to flow through the other line cards while a line card is being upgraded.
You cannot use NSSU to downgrade the software running on a switch.
For more information about NSSU, see Understanding Nonstop Software Upgrade on EX Series Switches.
Upgrade each Routing Engine manually—You can perform a Junos OS installation on each Routing Engine separately, starting with the backup Routing Engine. You can use this procedure to downgrade the software running on a switch.
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.
If your EX8200 switch is running Junos OS Release 10.4R3 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 EX6200 or EX8200 Standalone Switch Using Nonstop Software Upgrade (CLI Procedure).
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 Virtual Chassis or 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 primary 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:
- Preparing the Switch for the Software Installation
- Installing Software on the Backup Routing Engine
- Installing Software on the Default Primary Routing Engine
- Returning Routing Control to the Default Primary Routing Engine (Optional)
Preparing the Switch for the Software Installation
Perform the following steps before installing the software:
Installing Software on the Backup Routing Engine
After you have prepared the switch for software installation, install the software on the backup Routing Engine. During the installation, the primary Routing Engine continues operations, minimizing the disruption to network traffic.
Installing Software on the Default Primary Routing Engine
To transfer control to the backup Routing Engine and then upgrade or downgrade the primary Routing Engine software:
If you want to return routing control to the Routing Engine that was the primary Routing Engine at the beginning of the procedure (the default primary Routing Engine), perform the next task.
Returning Routing Control to the Default Primary Routing Engine (Optional)
The switch can maintain normal operations with the Routing Engine in slot 1 acting as the primary Routing Engine after the software upgrade, so only perform this task if you want to return routing control to the default primary Routing Engine in slot 0.
Upgrading the Loader Software on the Line Cards in a Standalone EX8200 Switch or an EX8200 Virtual Chassis
You are almost never required to upgrade the loader software on the line cards in an EX8200 switch.
Upgrading the loader software version for a line card is not a requirement to complete any software upgrade. In rare cases, a line card might go offline immediately after a software upgrade because the loader software version on the line card requires an upgrade to become compatible with the upgraded Junos OS. You can upgrade the loader software on the line cards as a best practice to avoid this problem and other less severe issues.
The loader software on any line card in an EX8200 switch is updated using the same loader software package that upgrades the EX8200 Routing Engine loader software. The line card software loader contains two banks, each with a single loader software version. This procedure is used to upgrade the loader software for both banks of a line card in a standalone EX8200 switch or an EX8200 Virtual Chassis.
To upgrade the loader software on the line cards in a standalone EX8200 switch or an EX8200 Virtual Chassis:
If you are upgrading Junos OS, the Routing Engine loader software, and the line card loader software, we recommend that you upgrade in this order: Junos OS, line card loader software, Routing Engine loader software.
See Also
Booting an EX Series Switch Using a Software Package Stored on a USB Flash Drive
There are two methods of getting Junos OS stored on a USB flash drive before using the software to boot the switch. You can pre-install the software onto the USB flash drive before inserting the USB flash drive into the USB port, or you can use the system snapshot feature to copy files from internal switch memory to the USB flash drive.
To move files into USB flash memory by using a system snapshot and use those files to boot the switch, see Creating a Snapshot and Using It to Boot an EX Series Switch. We recommend that you use this method to boot the switch from a USB flash drive if your switch is running properly.
If you need to pre-install the software onto the USB flash drive, you can use the method described in this topic. Pre-installing Junos OS onto a USB flash drive to boot the switch can be done at any time and is particularly useful when the switch boots to the loader prompt because the switch cannot locate the Junos OS in internal flash memory.
Ensure that you have the following tools and parts available to boot the switch from a USB flash drive:
-
A USB flash drive that meets the EX Series switch USB port specifications. See USB Port Specifications for an EX Series Switch.
-
A computer or other device that you can use to download the software package from the Internet and copy it to the USB flash drive.
To download a Junos OS package onto a USB flash drive before inserting the USB flash drive: