S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Basic Configuration
This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
Saving the Configuration File
Context
- Configure the automatic save function.
- Manually save the configuration.
Procedure
- Save the configurations automatically.
-
Run system-view
The system view is displayed.
-
Run set save-configuration [ interval interval | cpu-limit cpu-usage | delay delay-interval ] *
The system is configured to periodically save the configurations.
By default, the system does not periodically save configurations.
Before saving configurations, the system compares the configurations with those in the configuration file. Automatic saving of configurations is triggered in the following scenarios:- The configurations are inconsistent with those saved last time.
- The configurations are the same as those saved last time, but changes have been made. For example, if a command is run and then its configurations are deleted, automatic saving of configurations will still be triggered although configurations are the same as those saved last time.
The system cancels the automatic save operation when:- Content is being written into the configuration file.
- The configurations are being recovered.
- The CPU usage is excessively high.
-
(Optional) Run set save-configuration backup-to-server server server-ip [ vpn-instance vpn-instance-name ] transport-type { ftp | sftp } user user-name password password [ path folder ] or set save-configuration backup-to-server server server-ip transport-type [ vpn-instance vpn-instance-name ] tftp [ path folder ]
The server information is configured. The information includes the IP address of the server to which the configuration is automatically saved, user name and password, the path to save the configuration file, and the mode in which the configuration file is transmitted to the server.
Before transferring the configuration file using TFTP, run the tftp client-source command to configure the loopback interface on the device as the client source address or source interface.
SFTP has higher security and is recommended for transferring the configuration file to the file server.
Only the S1720GW, S1720GWR, S1720GW-E, S1720GWR-E, S1720X, S1720X-E, S2720EI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5720EI, S5720HI, S6720LI, S6720S-LI, S5730SI, S5730S-EI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support vpn-instance vpn-instance-name parameter in the command.
-
- Save the configurations manually.
-
Run save [ all ] [ configuration-file ]
The current configuration is saved.
The configuration file name extension must be .zip or .cfg. The system startup file must be stored in the root directory of the storage device.
- If you do not specify configuration-file when saving the configuration file for the first time, the system asks you whether to save the configuration file as vrpcfg.zip. The vrpcfg.zip file is the default system configuration file with empty configurations in initial state.
- If you do not specify configuration-file, configurations are saved to the current startup configuration file. You can run the display startup command to check the name of the current startup configuration file.
- You can run the pwd (user view) command to check the current storage directory.
- You can run the cd (user view) command .
- to modify the current storage directory.
-