Installing Junos OS on the SRX Series Services Gateways from the TFTP Server
You can install the Junos OS using the Trivial File Transfer Protocol (TFTP) method. The device is shipped with the Junos OS loaded on the primary boot device.
During install of the Junos OS from the loader, the device retrieves the Junos OS 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:
- Install the Junos OS on the device for the first time
- Recover the system from a file system corruption

Note: Installation from a TFTP server can only be performed using the first on-board Ethernet interface.
Installation from loader over TFTP method does not work reliably over slow speeds or large latency networks.
- Prerequisites
- Accessing the U-Boot Prompt
- Accessing the Loader Prompt
- Setting the Environment Variables for Junos OS Installation Using TFTP on the SRX Series Services Gateways
- Installing Junos OS Using TFTP on the SRX Series Services Gateways
Prerequisites
Before you begin the installation, ensure the following prerequisites are met:
- You have access to the TFTP server with the Junos OS package to be installed.
- The TFTP server supports BOOTP or DHCP.
If BOOTP or DHCP support is not available, then you need to manually configure the gateway IP address, device IP address, and netmask manually by setting environment variables.
For more information, see Setting the Environment Variables for Junos OS Installation Using TFTP on the SRX Series Services Gateways .
- Functional network connectivity between the device and the TFTP server over the first on-board Ethernet interface.
Accessing the U-Boot Prompt
To access the U-boot prompt:
- Use console connection to connect to the device.
- Reboot the device.
During reboot, the following messages are displayed:
Clearing DRAM........ done BIST check passed. Net: pic init done (err = 0)octeth0 POST PassedAfter this message appears, see the following prompt:
Press SPACE to abort autoboot in 3 seconds - Press the space bar to stop the autoboot process.
The => U-boot prompt appears.
Accessing the Loader Prompt
To access the Loader prompt:
- Use console connection to connect to the device.
- 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.
- Press the space bar to get to the Loader prompt.
The loader> prompt appears.
Setting the Environment Variables for Junos OS 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.
- Reboot the system and enter the U boot prompt.
- 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.
Installing Junos OS Using TFTP on the SRX Series Services Gateways
To install the software image on the internal media of the device:
- Go to the U-boot prompt. See Accessing the U-Boot Prompt.
- Configure the environment variables as described in Setting the Environment Variables for Junos OS Installation Using TFTP on the SRX Series Services Gateways .
- From the U-Boot prompt, reboot the system using the reset command.
- Go to the Loader prompt. For more information on accessing the Loader prompt, see Accessing the Loader Prompt.
- 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.tgzWhen this command is executed, the following actions take place:
- The Junos OS package is downloaded from the TFTP server.
- The internal media on the system is formatted.
- The Junos OS package is installed on the internal media.
![]() | Note: The Installation from loader over TFTP method installs software on the internal flash on SRX100, SRX210, SRX220, 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 OS 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 OS 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. |
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
