J-series™ Services Router User Guide
Managing Configuration Files with the CLI
This section contains the following topics:
Loading a New Configuration File
You can create a configuration file, copy the file to the Services Router, and
then load the file into the CLI. After you load the file, you can commit it to
activate the configuration on the router, or you can edit the configuration
interactively with the CLI and commit it at a later time.
You can also create a configuration while typing at the terminal and
then load it. Loading a configuration from the terminal is generally
useful when you are cutting existing portions of the configuration and
pasting them elsewhere in the configuration.
To load an existing configuration file that is located on the router, use
the following version of the
load (merge | override | patch | replace | update) filename <relative>
To load a configuration from the terminal, use the following
version of the
load (merge | override | patch | replace | update) terminal <relative>
Use the
configuration is the configuration in
the terminal). For more information about loading a configuration, see
the JUNOS System Basics Configuration Guide.
Table 49: Load Configuration File Options
Option
Function
merge
Combines the current configuration and the incoming configuration. A merge operation is useful
when you are adding a new section to an existing configuration. If the existing configuration and the
incoming configuration contain conflicting statements, the statements in the incoming configuration
override those in the existing configuration.
override
Discards the current candidate configuration and loads the incoming configuration.
patch
Changes part of the configuration with the incoming configuration and marks only those parts
as changed.
relative
Allows you to use the merge, replace, and update options without specifying the full hierarchy level.
158
Managing Configuration Files with the CLI
Loading a New Configuration File on page 158
Saving a Configuration File on page 160
load
command:
load
command options provided in Table 49. (The incoming
load
command:
or the one that you type at
filename