Support for the TFTPBOOT Installation Method on the SRX 210/SRX 650 Services Gateway
You can install the JUNOS software on the SRX 210/SRX 650 services gateway using the Trivial File Transfer Protocol BOOT (TFTPBOOT) method. The SRX 210/SRX 650 services gateway is shipped with the JUNOS software loaded on the primary boot device. The first time you install or upgrade, the new software package is installed in the secondary boot device. During install or upgrade of the JUNOS software, the secondary boot device in the services gateway retrieves the JUNOS software package from a TFTP server. The software image is then installed on the internal flash.
The TFTPBOOT method of installation can be used:
- To bring up the SRX 210/SRX 650 services gateway if the standard boot process fails.
- To install the JUNOS software on the SRX 210/SRX 650 services gateway for the first time.
- To boot JUNOS without using the internal flash.
![]() | Note: The TFTPBOOT method can be used only on LANs. |
Prerequisites
Before you begin the installation, ensure the following prerequisites are met:
- SRX 210/SRX 650 services gateway with or without JUNOS software image.
- SRX 210/SRX 650 services gateway with U-boot and Loader up and running.
- TFTP server available and loaded with the JUNOS package to be installed on SRX 210/SRX 650 services gateway.
- TFTP server with Bootstrap Protocol (BOOTP) or DHCP support.
If BOOTP or DHCP support is not available, then you need to configure the gateway IP address, SRX 210/SRX 650 IP address, and the netmask manually by setting environment variables. For more information, see the Setting Environment Variables for BOOTP or DHCP Support section.
- Functional network connectivity between the SRX 210/SRX 650 services gateway and the TFTP server.
- Ethernet interface support for the kernel of the SRX 210/SRX
650 services gateway.
This support is required to stream the ISO image from the TFTP server to the SRX 210/SRX 650 services gateway.
Setting Environment Variables for BOOTP or DHCP Support
If the TFTP server does not support BOOTP or DHCP, you need to set the following environmental variables:
set gatewayip = gateway IP Address
set ipaddr = IP Address of the SRX 210/SRX 650 services gateway
set netmask = netmask
To set these environment variables, you need to access the U-boot prompt. For more information on accessing this prompt, see Accessing the U-Boot Promptsection.
Accessing the Loader Prompt
To access the Loader prompt:
- Telnet to the SRX-series services gateway.
- Reboot the SRX-series services gateway.
During reboot, the following message is displayed:
Loading /boot/defaults/loader.conf
After this message appears, you are prompted with:
Hit [Enter] to boot immediately, or space bar for command prompt.
- Press the space bar to get to the Loader prompt.
The loader> prompt appears.
Accessing the U-Boot Prompt
To access the U-boot prompt:
- Telnet to the SRX-series services gateway.
- Reboot the SRX-series services gateway.
During reboot, the following messages are displayed:
Root Hub 0: 3 USB Device(s) found
Root Hub 1: 1 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
After this message appears, you are prompted with:
Hit any key to stop autoboot: 0
- Press any key to stop autoboot.
The => U-boot prompt appears.
Example for Setting Up Environment Variable
This example shows you how to proceed with setting up of environment variables. When you reboot a device, the following messages are displayed.
Follow the instructions to access the U-boot prompt and set environment variables at that prompt.
Installing JUNOS Software Using TFTPBOOT
To install the software image on the internal flash of the SRX-series services gateway:
- Go to the Loader prompt. For more information on accessing the Loader prompt, see Accessing the Loader Prompt section.
- Enter the following command at the Loader prompt:
Loader>install URL
Where URL is tftp://host/package
Example:
Loader>install tftp://10.77.25.12/junos-srxsme-9.4-200811.0-domestic.tgzThe Loader gets the IP address of the device, the IP address of the TFTP server, the IP address of the gateway, and the netmask.
Using this information, the Loader accesses the JUNOS package on the TFTP server and streams the installation files to the kernel using TFTP. The Loader loads and boots the kernel.
- The install script available in the installation
file executes. This script does the following:
- Enables the Ethernet interface.
- Downloads the JUNOS package from the server using TFTP.
- Installs the package on the internal flash.
After the installation of the software image, the SRX 210/SRX 650 services gateway boots from the internal flash.
![]() | Caution: When you install the JUNOS image using the TFTP method, the existing configurations, if any, in the SRX 210/SRX 650 services gateway will be erased completely. Therefore we recommend you to backup the configuration files before you plan to install or upgrade the software image on the SRX 210/SRX 650 services gateway. |
Hide Navigation Pane
Show Navigation Pane
Download
SHA1

