Installing Software Using the TFTPBoot Method on the SRX100, SRX210, and SRX650 Services Gateways
You can install the JUNOS Software using the Trivial File Transfer Protocol BOOT (TFTPBOOT) method. The device is shipped with the JUNOS Software loaded on the primary 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 device if the standard boot process fails.
- To install the JUNOS Software on the device for the first time.
- To boot JUNOS Software 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:
- The device with or without JUNOS Software image.
- The device with U-boot and Loader up and running.
- TFTP server available and loaded with the JUNOS package to be installed on the device.
- 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, device 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 device and the TFTP server.
- Ethernet interface support for the kernel of the device.
This support is required to stream the ISO image from the TFTP server to the device.
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 device
set netmask = netmask
set serverIP = server IP
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 device.
- Reboot the device.
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 device.
- Reboot the device.
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:
Press the space bar to abort autoboot in 10 seconds: 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 device:
- 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 device boots from the internal flash.
![]() | Caution: When you install the JUNOS image using the TFTP method, the existing configurations, if any, in the device 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 device. |

