Installing JUNOS Software on the SRX Series Services Gateways from the TFTP Server

You can install the JUNOS Software using the Trivial File Transfer Protocol (TFTP) method. The device is shipped with the JUNOS Software loaded on the primary boot device.

During install of the JUNOS Software from the loader, the device retrieves the JUNOS Software package from a TFTP server. The internal media is then formatted, and the software image is installed.

Installation from loader can be used to perform the following tasks:

Prerequisites

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

Accessing the U-Boot Prompt

To access the U-boot prompt:

  1. Use console connection to connect to the device.
  2. Reboot the device.

    During reboot, the following messages are displayed:

    Clearing DRAM........ done
    BIST check passed.
    Net:   pic init done (err = 0)octeth0
    POST Passed
    
    

    After this message appears, see the following prompt:

    Press SPACE to abort autoboot in 3 seconds
  3. Press the space bar to stop the autoboot process.

    The => U-boot prompt appears.

Accessing the Loader Prompt

To access the Loader prompt:

  1. Use console connection to connect to the device.
  2. Reboot the device.

    During reboot, the following message is displayed:

    Loading /boot/defaults/loader.conf

    After this message appears, see the following prompt:

    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.

Setting the Environment Variables for JUNOS Software Installation Using TFTP on the SRX Series Services Gateways

If the TFTP server does not support BOOTP or DHCP, you need to set the environment variables before performing installation from TFTP server.

  1. Reboot the system and enter the U boot prompt.
  2. Configure the environment variables as listed in Table 126.

    Table 126: Environment Variables Settings

    Environment Variables

    Description

    gatewayip

    IP address of the gateway device

    ipaddr

    IP address of the SRX Series device

    netmask

    network mask

    serverip

    IP address of the TFTP server

Example

This example shows you how to set up 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.

Clearing DRAM........ doneBIST check passed.Net: pic init done (err = 0)octeth0POST Passed Press SPACE to abort autoboot in 3 seconds => => setenv ipaddr 10.157.70.170 => setenv netmask 255.255.255.0 => setenv gatewayip 10.157.64.1=> setenv serverip 10.157.60.1 => saveenv

Installing JUNOS Software Using TFTP on the SRX Series Services Gateways

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

  1. Go to the U-boot prompt. See Accessing the U-Boot Prompt.
  2. Configure the environment variables as described in Setting the Environment Variables for JUNOS Software Installation Using TFTP on the SRX Series Services Gateways .
  3. From the U-Boot prompt, reboot the system using the reset command.
  4. Go to the Loader prompt. For more information on accessing the Loader prompt, see Accessing the Loader Prompt.
  5. Enter the following command at the Loader prompt:

    Loader> install URL

    Where URL is tftp://tftp-server-ipaddress/package

    Note: The URL path is relative to the TFTP server’s TFTP root directory.

    Example:

    Loader>install install tftp://10.77.25.12/junos-srxsme-10.0R2-domestic.tgz

    When this command is executed, the following actions take place:

    • The JUNOS package is downloaded from the TFTP server.
    • The internal media on the system is formatted.
    • The JUNOS package is installed on the internal media.

Note: The Installation from loader over TFTP method installs software on the internal flash on SRX100, SRX210, and SRX240 devices, whereas on SRX650 devices, this method can install software on the internal or external CompactFlash card.

After software image is installed, the device boots from the internal media.

Once the system boots up with JUNOS Release 10.0 or later, upgrade the U-boot and boot loader immediately. See Upgrading the Boot Loader on SRX Series Services Gateways.

Caution: When you install the JUNOS Software using the loader over TFTP method, the media is formatted. The process attempts to save the current configuration. It is recommended that all important information on the device should be backed up before using this process.