When incorrect configurations are performed and functions are abnormal, you can use one of the following methods to restore a backed up configuration file:
After restoring the configuration file, you must restart the device to make the configuration take effect. Run the startup saved-configuration command to specify the next startup configuration file unless the configuration file name has not changed. Then run the reboot command to restart the device.
This step restores 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:
<HUAWEI> copy flash:/backup.cfg flash:/config.cfg
The device supports configuration file restoration using FTP, TFTP, FTPS, SFTP, or SCP. Configuration file restoration using FTP or 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 FTP. For details about TFTP, FTPS, SFTP, and SCP, see File Management.