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.


CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 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).
Backing Up the Configuration File

Backing Up the Configuration File


If the device is damaged unexpectedly, the configuration file cannot be recovered. You can back up the configuration file in advance using one of the following methods:
  • Copy the content in the display on the screen.
  • Back up the configuration file to the storage device.
  • Back up the configuration file using FTP, TFTP, or SFTP.


  • Copying the content in the display on the screen

    Run the display current-configuration command and copy all command outputs to a .txt file. The configuration file is backed up in the hard disk of the maintenance terminal.

    If a configuration is too long, it may be displayed in two lines on the terminal screen, depending on the terminal software. When copying a two-line configuration from the screen to a .txt file, ensure that the configuration is displayed in only one line. Otherwise, configuration restoration may fail when the .txt file is used.

  • Backing up the configuration file to the storage device

    The current configuration file can be backed up immediately to the SD card of the device. After the device starts, run the following commands to back up the configuration file to the SD card of the device:

    <Huawei> save config.cfg
    <Huawei> copy config.cfg backup.cfg

    To save the configuration in a directory other than the default storage device, specify an absolute path.

  • Backing up the configuration file using FTP, TFTP, or SFTP

    The device supports configuration file backup through FTP, TFTP, or SFTP. Configuration file backup through FTP or TFTP is simple, but there are security risks. In scenarios with high security requirements, configuration file backup through SFTP is recommended. The following describes the configuration file backup process using FTP as an example. For details about TFTP and SFTP, see "File Management" in Huawei AR Series Access Routers 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 sd1 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 sd1:
      [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

      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 c:\temp 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 get command to load the configuration file to the specified path and save the file as backup.cfg.

      ftp> get config.cfg backup.cfg

    5. Check whether the config.cfg and backup.cfg files have the same size. If they have the same size, the backup is successful.
Updated: 2019-11-21

Document ID: EDOC1100034066

Views: 89939

Downloads: 487

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