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:

Note: The TFTPBOOT method can be used only on LANs.

Prerequisites

Before you begin the installation, ensure the following prerequisites are met:

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:

  1. Telnet to the device.
  2. 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.

  3. 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:

  1. Telnet to the device.
  2. 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

  3. 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.

Root Hub 0: 3 USB Device(s) found Root Hub 1: 1 USB Device(s) foundscanning bus for storage devices... 1 Storage Device(s) found Hit any key to stop autoboot: 0 => => setenv ipaddr 10.157.70.170 => setenv netmask 255.255.255.0 => setenv gatewayip 10.157.64.1=> setenv serverip 10.157.60.1 => save

Installing JUNOS Software Using TFTPBOOT

To install the software image on the internal flash of the device:

  1. Go to the Loader prompt. For more information on accessing the Loader prompt, see Accessing the Loader Prompt section.
  2. 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.tgz

    The 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.

  3. 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.