No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Basic Configuration

S1720, S2700, S5700, and S6720 V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Recovering the Configuration File

Recovering the Configuration File


When incorrect configurations are performed and functions are abnormal, you can use one of the following methods to recover the configuration file:
  • Recover the configuration file backed up in the storage device.
  • Recover the configuration file using FTP, TFTP, FTPS, SFTP, or SCP.

After recovering the configuration file, you must restart the device to make the file take effect. Run the startup saved-configuration command to specify the next startup configuration file. If the configuration file name is unchanged, you do not need to run this command. Run the reboot command to restart the device.


  • Recover the configuration file backed up in the .

    This step recovers the backup configuration file stored in the of the device to the current system configuration file. When the device is working properly, run the following command:

    <HUAWEI> copy flash:/backup.cfg flash:/config.cfg

  • Recover the configuration file using FTP, TFTP, FTPS, SFTP, or SCP.

    The device supports configuration file recovery using FTP, TFTP, FTPS, SFTP, or SCP. Configuration file recovery using FTP or TFTP is simple, but there are security risks. In scenarios with high security requirements, configuration file recovery using FTPS, SFTP, or SCP is recommended. The following describes how to recover the configuration file backed up on a PC using FTP. For details about TFTP, FTPS, SFTP, and SCP, see File Management.

    1. Start the FTP service when the device works as the FTP server.

      Enable the FTP server function on the device. Create an FTP user with the name huawei and password Helloworld@6789. The user is authorized to access the flash directory.

      <HUAWEI> system-view
      [HUAWEI] ftp server enable
      Warning: FTP is not a secure protocol, and it is recommended to use SFTP.
      Info: Succeeded in starting the FTP server.
      [HUAWEI] aaa
      [HUAWEI-aaa] local-user huawei password irreversible-cipher Helloworld@6789
      [HUAWEI-aaa] local-user huawei ftp-directory flash:
      [HUAWEI-aaa] local-user huawei service-type ftp
      [HUAWEI-aaa] local-user huawei privilege level 15

    2. On the maintenance terminal, initiate an FTP connection to the device.

      On the PC, run the following command to set up an FTP connection to the device using the FTP client. In this example, the device IP address is

      C:\Documents and Setting\Administrator> ftp
      Connected to
      220 FTP service ready.
      User ( huawei
      331 Password required for huawei.
      230 User logged in.

    3. Configure transfer parameters.

      If the FTP user is authenticated, the FTP client displays the prompt character of ftp>. Enter binary following the prompt character, and specify the path where the uploaded file is to be saved on the FTP client.

      ftp> binary
      200 Type set to I.
      ftp> lcd c:\temp
      Local directory now C:\temp.

    4. Transfer the configuration file.

      On the PC, run the put command to upload the configuration file to the specified path and save the file as backup.cfg.

      ftp> put config.cfg backup.cfg

    5. Check whether the backup.cfg file is successfully uploaded. If the backup.cfg file exists on the device and has the correct size, you have successfully recovered the configuration file.
Updated: 2019-10-21

Document ID: EDOC1000178166

Views: 253810

Downloads: 1935

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next