End-of-Life (EoL)
Entering commands in configuration mode modifies the candidate configuration. The modified candidate configuration is stored in the appliance memory and maintained while the appliance is running.
Each configuration command involves an action, and may also include keywords, options, and values.
This section describes Configuration mode and the configuration hierarchy:
Configuration Mode Command Usage
Use the following commands to store and apply configuration changes:
save—Saves the candidate configuration in the non-volatile storage on the appliance. The saved configuration is retained until overwritten by subsequent save commands. Note that this command does not make the configuration active. commit—Applies the candidate configuration to the appliance. A committed configuration becomes the active configuration for the device. set—Changes a value in the candidate configuration. load—Assigns the last saved configuration or a specified configuration to be the candidate configuration.
When exiting configuration mode without issuing the save or commit command, the configuration changes could be lost if the appliance loses power.
Maintaining a candidate configuration and separating the save and commit steps confers important advantages when compared with traditional CLI architectures:
Distinguishing between the save and commit concepts allows multiple changes to be made at the same time and reduces system vulnerability. Commands can easily be adapted for similar functions. For example, when configuring two Ethernet interfaces, each with a different IP address, you can edit the configuration for the first interface, copy the command, modify only the interface and IP address, and then apply the change to the second interface. The command structure is always consistent.
Because the candidate configuration is always unique, all authorized changes to the candidate configuration are consistent with each other.
Configuration Hierarchy
The configuration for the appliance is organized in a hierarchical structure. To display a segment of the current hierarchy level, use the show command. Entering show displays the complete hierarchy, while entering show with keywords displays a segment of the hierarchy. For example, when running the command show from the top level of configuration mode, the entire configuration is displayed. When running the command edit mgt-config and you enter show, or by running show mgt-config, only the mgt-config part of the hierarchy displays.
Hierarchy Paths
When entering commands, the path is traced through the hierarchy as follows:
For example, the following command assigns the primary DNS server 10.0.0.246 for the appliance:
[edit] username@hostname# set deviceconfig system dns-setting servers primary 10.0.0.246
This command generates a new element in the hierarchy and in the output of the following show command:
[edit] username@hostname# show deviceconfig system dns-settings
dns-setting {
servers {
primary 10.0.0.246
}
}
[edit] username@hostname#
Navigate the Hierarchy
The [edit...] banner presented below the Configure mode command prompt line shows the current hierarchy context.
[edit]
indicates that the relative context is the top level of the hierarchy, whereas
[edit deviceconfig]
indicates that the relative context is at the deviceconfig level.
Use the commands listed in to navigate through the configuration hierarchy.
Level Description
edit Sets the context for configuration within the command hierarchy.
up Changes the context to the next higher level in the hierarchy.
top Changes the context to the highest level in the hierarchy.
The set command issued after using the up and top commands starts from the new context.

Recommended For You