Junos® OS Software Installation and Upgrade Guide
Total Page:16
File Type:pdf, Size:1020Kb
Junos® OS Junos® OS Software Installation and Upgrade Guide Published 2021-03-24 ii Juniper Networks, Inc. 1133 Innovation Way Sunnyvale, California 94089 USA 408-745-2000 www.juniper.net Juniper Networks, the Juniper Networks logo, Juniper, and Junos are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered marks, or registered service marks are the property of their respective owners. Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right to change, modify, transfer, or otherwise revise this publication without notice. Junos® OS Junos® OS Software Installation and Upgrade Guide Copyright © 2021 Juniper Networks, Inc. All rights reserved. The information in this document is current as of the date on the title page. YEAR 2000 NOTICE Juniper Networks hardware and software products are Year 2000 compliant. Junos OS has no known time-related limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036. END USER LICENSE AGREEMENT The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use with) Juniper Networks software. Use of such software is subject to the terms and conditions of the End User License Agreement ("EULA") posted at https://support.juniper.net/support/eula/. By downloading, installing or using such software, you agree to the terms and conditions of that EULA. iii Table of Contents About This Guide | xxi 1 Junos OS Overview Junos OS Overview | 2 Junos OS Overview | 2 2 System Back Up and Recovery Backing Up an Installation Using Snapshots | 7 Understanding How to Back Up an Installation on Switches | 7 Creating a Snapshot and Using It to Boot a QFX Series Switch | 9 Creating a Snapshot on an External USB Flash Drive and Using It to Boot a QFX Series Switch | 10 Creating a Snapshot and Using It to Boot a QFX3500 and QFX3600 Series Switch | 11 Creating a Snapshot and Using It to Boot an EX Series Switch | 14 Creating a Snapshot on a USB Flash Drive and Using It to Boot the Switch | 14 Creating a Snapshot and Using It to Boot an SRX Series device | 15 Creating a Snapshot and Using It to Boot an SRX Series device | 15 Backing Up the Current Installation on SRX Series Devices | 18 Creating a Snapshot and Using It to Boot an ACX Series Router | 21 Understanding System Snapshot on an ACX Series Router | 21 Example: Taking a Snapshot of the Software and Configuration | 22 Recovery Using an Emergency Boot Device | 26 Creating an Emergency Boot Device for Routers | 27 Creating an Emergency Boot Device for QFX Series Switches | 28 Recovering the Installation Using an Emergency Boot Device | 30 Performing a Recovery Installation | 32 Rescue and Recovery of Configuration File | 33 Saving and Reverting a Rescue Configuration File | 34 iv Saving a Rescue Configuration File | 34 Reverting to the Rescue Configuration | 38 Copy Backup Configurations and Restoring a Saved Configurations | 39 Copy Backup Configurations to the Router | 39 Restoring a Saved Configuration | 39 Reverting to the Default Factory Configuration by Using the request system zeroize Command | 42 Recovery of Junos OS | 42 Recovering from a Failed Software Installation | 43 Recovering Junos OS on a Device Running Junos OS with Upgraded FreeBSD | 45 How to Recover Junos OS with Upgraded FreeBSD | 49 Ways to Recover Junos OS with Upgraded FreeBSD Without the Use of the CLI | 49 How to Access the Junos Main Menu, Boot Menu, and Options Menu | 53 How to Access the Junos Main Menu | 53 How to Access the Boot Menu | 55 How to Access the Options Menu | 56 Autorecovery of Configuration, Licenses, and Disk Information on SRX Series Devices | 57 3 Installing, Upgrading, and Downgrading Software Software Installation and Upgrade Overview | 63 Software Installation and Upgrade Overview | 63 Junos OS and Junos OS Evolved Installation Package Names | 69 Junos OS and Junos OS Evolved Installation Packages Prefixes | 70 Junos OS and Junos OS Evolved Release Numbers | 75 Junos OS and Junos OS Evolved Editions | 76 Boot Sequence on Devices with Routing Engines | 77 Preparing for Software Installation and Upgrade | 81 Upgrade or Reinstall Junos OS | 82 Checklist for Reinstalling Junos OS | 82 Log the Software Version Information | 84 Log the Hardware Version Information | 86 Log the Chassis Environment Information | 88 v Log the System Boot-Message Information | 89 Log the Active Configuration | 92 Log the Interfaces on the Router | 93 Log the BGP, IS-IS, and OSPF Adjacency Information | 94 Log the System Storage Information | 96 Validating the Configuration Image Before Upgrading or Downgrading the Software | 97 Ensuring Sufficient Disk Space for Junos OS Upgrades on SRX Devices | 98 Verifying Available Disk Space on SRX Series Devices | 98 Cleaning Up the System File Storage Space | 99 Verifying Junos OS and Boot Loader Software Versions on an EX Series Switch | 101 Verifying the Number of Partitions and File System Mountings | 101 Verifying the Loader Software Version | 103 Verifying Which Root Partition Is Active | 104 Verifying the Junos OS Version in Each Root Partition | 105 Downloading Software | 107 Downloading Software Using a Browser | 107 Downloading Software Using the Command-Line Interface | 108 Downloading Software Using Download Manager (SRX Series Only) | 110 Reinstall Junos OS | 112 Reconfigure Junos OS | 113 Configure Host Names, Domain Names, and IP Addresses | 113 Protecting Network Security by Configuring the Root Password | 115 Check Network Connectivity | 117 Managing YANG Packages and Configurations During a Software Upgrade or Downgrade | 118 Backing up and Deleting the Configuration Data | 119 Restoring the YANG Packages and Configuration Data | 119 Installing Software on Routing Devices | 121 Installing the Software Package on a Router with a Single Routing Engine | 121 Installing the Software Package on a Device with Redundant Routing Engines | 123 Preparing the Device for the Installation | 123 vi Installing Software on the Backup Routing Engine | 125 Installing Software on the Remaining Routing Engine | 127 Finalizing the Installation | 130 Installing Software on EX Series Switches | 132 Understanding Software Installation on EX Series Switches | 133 Installing Software on an EX Series Switch with a Virtual Chassis or Single Routing Engine (CLI Procedure) | 135 Installing Software on an EX Series Switch with Redundant Routing Engines (CLI Procedure) | 138 Preparing the Switch for the Software Installation | 139 Installing Software on the Backup Routing Engine | 141 Installing Software on the Default Primary Routing Engine | 142 Returning Routing Control to the Default Primary Routing Engine (Optional) | 144 Upgrading the Loader Software on the Line Cards in a Standalone EX8200 Switch or an EX8200 Virtual Chassis | 145 Booting an EX Series Switch Using a Software Package Stored on a USB Flash Drive | 149 Installing Software on QFX Series Devices | 151 Installing Software Packages on QFX Series Devices | 151 Installing the Software on QFX10002-60C Switches | 152 Installing a Standard Software Package on QFX5000 and EX4600 Switches | 153 Installing a Standard Software Package on QFX10002 Switches | 154 Upgrading Software from Junos OS Release 15.1X53-D3X to Junos OS Release 15.1X53- D60, 15.1X53-D61.7, 15.1X53-D62, and 15.1X53-D63 on QFX10008 and QFX10016 Switches | 157 Installing a Software Package on QFX10008 and QFX10016 Switches | 161 Upgrading Software by Using Automatic Software Download for Switches | 165 Configuring DHCP Services for the Switch | 166 Enabling Automatic Software Download on a Switch | 166 Verifying That Automatic Software Download Is Working Correctly | 167 Upgrading Jloader Software on QFX Series Devices | 168 Jloader Software Version 1.1.4 Guidelines | 171 Upgrading Jloader Software on a QFX3500 Switch | 171 Upgrading Jloader Software on a QFabric System | 174 vii Installing Junos OS Software with Junos Automation Enhancements | 183 How To Install Third-Party Software on Devices Running Junos OS Evolved | 189 Personality Upgrade Process | 191 Understanding the Personality Upgrade Process for a Device | 191 Supported Personality Upgrades | 193 Upgrading the Personality of a Device by Using a USB Flash Drive | 194 Upgrading the Personality of a Device by Using CLI | 195 How to Upgrade the Personality of a Device on Junos OS | 195 Upgrading the Personality of a Device by Using a PXE Boot Server | 198 Upgrading the Personality of SRX1500 Device by Using a PXE Boot Server | 202 Upgrading the Personality of SRX4100 Device by Using a PXE Boot Server | 206 Upgrading the Personality of SRX4600 Device by Using a PXE Boot Server | 210 Upgrading the Personality of QFX10002-60C and PTX10002-60C Devices | 214 Upgrading the Personality of QFX10002-60C and PTX10002-60C Devices Using the PXE Boot Server | 214 Upgrading the Personality of QFX10002-60C and PTX10002-60C Devices Using the USB Option | 219 Upgrading the Personality of QFX10002-60C and PTX10002-60C Devices Using the CLI Option | 220 Upgrading the Personality of QFX10002-60C and PTX10002-60C Devices Using Zero Touch Provisioning (ZTP) | 222 Upgrade the NFX250 Software to NFX250 NextGen Software | 230 NFX250 NextGen Software Upgrade Overview | 230 Prerequisites | 230 Upgrade to NFX250 NextGen Software Architecture | 233 Installing Software on SRX Series Devices | 233 Understanding Junos OS Upgrades for SRX Series Devices | 234