How to load the configuration file on the AR router

2

When incorrect configurations cause abnormal functions, you can use one of the following methods:

Method 1: Use FTP, TFTP, or SFTP to restore the configuration file. The device supports configuration file restoration through FTP, TFTP, and SFTP. It is simple to restore the configuration file through FTP or TFTP, but there are security risks. In scenarios demanding high security, configuration file restoration through SFTP is recommended. The following describes how to restore the configuration file that is backed up on a PC through FTP:
1. Start the FTP service when the device works as the FTP server.
Enable the FTP server. Create an FTP account with the name of huawei and password of Helloworld@6789, and grant the user's permission on sd1:.
2. On the maintenance terminal, initiate an FTP connection to the device.
On the PC, set up an FTP connection with 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 transmission parameters.
If the FTP user passes authentication, the FTP client displays the prompt character of "ftp>". Enter binary (binary transfer mode) following the prompt character. Then specify the path as 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 device.
ftp> put backup.cfg
5. Check whether the backup.cfg file is successfully uploaded. If the backup.cfg file exists on the device and the file size is correct, the configuration file restoration is successful.

Note: The backup.cfg file is for reference only. Enter the file name according to the actual situation.
6. Specify the restored configuration file backup.cfg as the configuration file used for next restart.
7. Restart the device. The configuration restoration completes.
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...
Note: When the system displays the message “All the configuration will be saved to the next startup configuration. Continue?�? select “n�? Otherwise, configuration recovery fails.

Method 2: Restore the configuration file from the storage medium. This step is performed to restore the backup configuration file in the SD card as the running configuration file. When the device is working properly, run the following commands:
1. Restore the backup configuration file in the SD card as the running configuration file.
2. Restart the device. The configuration restoration completes.
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...

Other related questions:
How to load the configuration file on the AR router
When incorrect configurations cause abnormal functions, you can use one of the following methods: Method 1: Use FTP, TFTP, or SFTP to restore the configuration file. The device supports configuration file restoration through FTP, TFTP, and SFTP. It is simple to restore the configuration file through FTP or TFTP, but there are security risks. In scenarios demanding high security, configuration file restoration through SFTP is recommended. The following describes how to restore the configuration file that is backed up on a PC through FTP: 1. Start the FTP service when the device works as the FTP server. Enable the FTP server. Create an FTP account with the name of huawei and password of Helloworld@6789, and grant the user's permission on sd1:. 2. On the maintenance terminal, initiate an FTP connection to the device. On the PC, set up an FTP connection with 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 transmission parameters. If the FTP user passes authentication, the FTP client displays the prompt character of "ftp>". Enter binary (binary transfer mode) following the prompt character. Then specify the path as 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 device. ftp> put backup.cfg 5. Check whether the backup.cfg file is successfully uploaded. If the backup.cfg file exists on the device and the file size is correct, the configuration file restoration is successful. Note: The backup.cfg file is for reference only. Enter the file name according to the actual situation. 6. Specify the restored configuration file backup.cfg as the configuration file used for next restart. 7. Restart the device. The configuration restoration completes. 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... Note: When the system displays the message “All the configuration will be saved to the next startup configuration. Continue?�? select “n�? Otherwise, configuration recovery fails. Method 2: Restore the configuration file from the storage medium. This step is performed to restore the backup configuration file in the SD card as the running configuration file. When the device is working properly, run the following commands: 1. Restore the backup configuration file in the SD card as the running configuration file. 2. Restart the device. The configuration restoration completes. 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...

How do I view the broadband account of the AR router
Run the display current-configuration command to check the configuration file of the AR router. 1. When the AR router functions as the PPPoE server and "local-user user1@system service-type ppp" is queried, user1@system is the user name of the local account. 2. When the AR router functions as the PPPoE client and "ppp chap user user1@system" or "ppp pap local-user user1@system password" is queried, user1@system is the user name of the local account.

How to save configuration locally on an AR router
There are two methods to export configuration locally on an AR router: web NMS and command lines.

1. Web NMS (example):
Log in to the web NMS, and choose System Management > Upgrade and Maintenance > Restart Device. Click Export Configuration File to back up the current configuration file to a local PC.

2. Command lines (example):
Use the router as an FTP server, and enable the FTP service.  
Enable the FTP server on the router, and create an FTP user with the user name huawei and password Helloworld@6789. Authorize the user to access the directory sd1:.
<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

Initiate an FTP connection from a maintenance PC to the router.  
On the PC, create an FTP connection to the router through the FTP client (for example, the IP address of the router 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.

Set transmission parameters.  
After the FTP user passes the authentication, the FTP client displays the prompt "ftp>". Enter binary (binary transmission mode) under the prompt ftp>, and set a directory on the FTP client for storing uploaded files.
ftp> binary
200 Type set to I.
ftp> lcd c:\temp
Local directory now C:\temp.

Transmit the configuration file.  
On the PC, run the get command to download the configuration file to a locally specified directory, and name the file backup.cfg.
ftp> get sd1:/config.cfg backup.cfg

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top