Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




QFX Series

VMX Series


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.

dhcp-security-snoop—(VMX Series switches) Loads DHCP snooping entries.

dhcpv6-security-snoop—(VMX Series switches) Loads DHCPv6 snooping entries.

factory-default—Loads the factory configuration. The factory configuration contains the manufacturer’s suggested configuration settings. The factory configuration is the first configuration for the router or switch 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 Juniper Networks Device.

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


The load commands for dhcp-security-snoop and dhcpv6-security-snoop are restricted to admin only.

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:

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

Release Information

Command introduced before Junos OS Release 7.4.

json option introduced in Junos OS Release 16.1.