
19
[Sysname]
configuration encrypt { private-key | public-key }
NOTE:
For the device that supports this feature, you can use the
display saved-configuration
command
instead of the
more
command to view the encrypted configuration file, because the latter
cannot decrypt the file. Otherwise, you are prompted for operation failure or garbled characters.
Modes in saving the configuration
You can save the configuration in one of the following two modes:
Fast saving mode: Fast saving mode is implemented by using the
save
command
without providing the
safely
keyword. The mode saves the file quickly but is likely to
lose the existing configuration file if the device reboots or the power fails during the
process.
Safe mode. Safe mode is implemented by using the
save
command with the
safely
keyword. The mode saves the file more slowly than the fast saving mode, but can
retain the configuration file on the device even if the device reboots or the power
fails during the process.
The fast saving mode is suitable for environments where power supply is stable. The safe
mode, however, is preferred in environments where stable power supply is unavailable
or remote maintenance is involved.
NOTE:
The configuration file must have extension
.cfg
During the execution of the
save
[
safely
] command, the startup configuration file to be used
at the next system startup may be lost if the device reboots or the power supply fails. In this
case, the device boots with the null configuration. After the device reboots, you must
re-specify a startup configuration file for the next system startup.
To save the current configuration, use either command (available in any view):
1.
Required: Save the current configuration to the specified file, but the configuration
file is not set as the file to be used at the next startup.
[Sysname]save
file-url
2.
Required: Save the current configuration to the root directory of the storage
medium and specify the file as the startup configuration file to be used at the next
startup.
[Sysname]save [ safely ]