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

CLI-based Configuration Guide - Basic Configuration

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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:
  • Recover the configuration file that is backed up in the storage device.
  • Recover the configuration file using FTP, TFTP, or SFTP.
NOTE:

After recovering the configuration file, you must restart the device to make the file take effect.

Procedure

  • Recover the configuration file that is backed up in the flash memory.

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

    1. Recover the backup configuration file stored in the flash memory of the device to the current system configuration file.

      <Huawei> startup saved-configuration backup.cfg

    2. Restart the device. The configuration file recovery is complete.

      <Huawei> reboot
      Info: The system is comparing the configuration, please wait.
      Warning: All the configuration will be saved to the next startup configuration. Continue? [y/n]: n
      System will reboot! Continue? [y/n]: y
      Info: system is rebooting ,please wait...

  • Recover the configuration file using FTP, TFTP, or SFTP

    The device supports configuration file recovery through FTP, TFTP, or SFTP. Configuration file recovery through FTP or TFTP is simple, but there are security risks. In scenarios with high security requirements, configuration file recovery through SFTP is recommended. The following describes how to recover the configuration file that is backed up on a PC through FTP. For details about TFTP and SFTP, see "File Management" in Huawei AR Series IOT Gateway Configuration Guide - Basic Configurations.

    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
      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, set up an FTP connection to the device through the FTP client. Assume that 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 C:\temp 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 flash:/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, the configuration file recovery is successful.
    6. Specify the recovered backup.cfg file as the configuration file for next startup.

      <Huawei> startup saved-configuration backup.cfg

    7. Restart the device. The configuration file recovery is complete.

      <Huawei> reboot
      Info: The system is comparing the configuration, please wait.
      Warning: All the configuration will be saved to the next startup configuration. Continue? [y/n]: n
      System will reboot! Continue? [y/n]: y
      Info: system is rebooting ,please wait...

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 44536

Downloads: 100

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