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

Reminder

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

upgrade

Configuration Guide - Basic Configuration

S7700 and S9700 V200R010C00

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

Context

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.
NOTE:

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.

Procedure

  • Recover the configuration file backed up in the CF card.

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

    <HUAWEI> copy cfcard:/backup.cfg cfcard:/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 an 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 cfcard 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 cfcard:
      [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 establish an FTP connection to the device using the FTP client. In this example, the device IP address is 10.110.24.254.

      C:\Documents and Setting\Administrator> ftp 10.110.24.254
      Connected to 10.110.24.254.
      220 FTP service ready.
      User (10.110.24.254:(none)): huawei
      331 Password required for huawei.
      Password:
      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.
Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000141895

Views: 62012

Downloads: 219

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