QFX Series

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.

json option introduced in Junos OS Release 16.1.


Load a configuration from an ASCII configuration file, from terminal input, or from the factory default. Your current location in the configuration hierarchy is ignored when the load operation occurs.

For information on valid filename and URL formats, see Format for Specifying Filenames and URLs in Junos OS CLI Commands.


load can be run from configuration mode only.


dhcp-snooping—(QFX Series switches) Loads DHCP snooping entries.

factory-default—Loads the factory configuration. The factory configuration contains the manufacturer’s suggested configuration settings. The factory configuration is the router or switch’s first configuration and is loaded when the router or switch is first installed and powered on. The factory-default option cannot be combined with other options.


To load the factory default configuration, you must first unprotect any protected hierarchies in the configuration.

filename—Name of the file to load. For information about specifying the filename, see Viewing Files and Directories on a Device Running Junos OS.

json—(Optional) Load configuration data that uses JavaScript Object Notation (JSON) format. This option can be used with the merge, override, or update options.

merge—Combine the configuration that is currently shown in the CLI with the configuration.

override—Discard the entire configuration that is currently shown in the CLI and load the entire configuration. Marks every object as changed.

patch—Change part of the configuration and mark only those parts as changed.

relative—(Optional) Load the new configuration data relative to the current edit point in the configuration hierarchy.

replace—Look for a replace tag in filename, delete the existing statement of the same name, and replace it with the configuration.

set—Merge a set of commands with an existing configuration. This option executes the configuration instructions line by line as they are stored in a file or from a terminal. The instructions can contain any configuration mode command, such as set, edit, exit, and top.

terminal—Use the text you type at the terminal as input to the configuration. Type Ctrl+d to end terminal input.

update—Discard the entire configuration that is currently shown in the CLI, and load the entire configuration. Marks changed objects only.


If you are using Junos OS in a Common Criteria environment, system log messages are created whenever a secret attribute is changed (for example, password changes or changes to the RADIUS shared secret). These changes are logged during the following configuration load operations:

For more information, see the Secure Configuration Guide for Common Criteria and Junos-FIPS.

Required Privilege Level

configure—To enter configuration mode, but other required privilege levels depend on where the statement is located in the configuration hierarchy.

Sample Output

The following is an example of a load scenario using Secure Copy (scp).

To Load a Configuration File Using Secure Copy Protocol (scp) with ’source-address’ and ’routing-instance’ options

To load a configuration file using the scp command with the source-address and routing-instance options, enter the following command:

root@host# load merge scp://user@hostname/path/filename source-address address routing-instance instance-name

The scp options source-address and routing-instance are supported for load override, load patch, load replace, load set, and load update options also.