< Home

Restoring the Configuration File

Networking Requirements

As shown in Figure 1, a user logs in to the device and finds that some incorrect configurations cause errors in the system. To restore the original configuration, the user transfers the backup configuration file from the TFTP server to the device and specifies this configuration file for next startup.

Figure 1 Networking diagram of restoring the configuration file

Configuration Roadmap

The configuration roadmap is as follows:

  1. Restore the backup configuration file on the PC using TFTP.

    Configuration file restoration using TFTP is simple, but there are security risks. In scenarios with high security requirements, configuration file restoration using FTPS, SFTP, or SCP is recommended. The following describes how to restore the configuration file backed up on a PC using TFTP.

  2. Specify the restored configuration file for next startup.

Procedure

  1. Restore the backup configuration file on the PC using TFTP.
    1. Start the TFTP server program.

      Start the TFTP server program on the PC. Set the path for transmitting the configuration file, and the IP address and port number of the TFTP server.

    2. Transfer the configuration file.

      # Run the tftp command in the user view.

      <HUAWEI> tftp 10.110.24.254 get backup.cfg config.cfg

  2. Specify the restored configuration file for next startup.

    <HUAWEI> startup saved-configuration config.cfg

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >