Got it

Backing Up the Configuration File Highlighted

Latest reply: Apr 29, 2016 08:27:36 2532 2 0 0 0

Hi everyone,

Commonly, if a device is damaged unexpectedly, the configuration file cannot be recovered. To prevent configuration loss, you can back up the configuration file using FTP. Assume that the PC's IP address is and the device's IP address is

When the device serves as an FTP server and the PC serves as an FTP client:

# Configure the FTP function for the device and information about an FTP user.

<HUAWEI> system-view
[HUAWEI] ftp server enable
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789
[HUAWEI-aaa] local-user admin1234 privilege level 15
[HUAWEI-aaa] local-user admin1234 service-type ftp
[HUAWEI-aaa] local-user admin1234 ftp-directory cfcard:/
[HUAWEI-aaa] quit
[HUAWEI] quit

# Save the current configuration on the device.

<HUAWEI> save

# Connect the PC to the device using FTP. Enter the user name admin1234 and password Helloworld@6789 and set the file transfer mode to binary.

The following example assumes that the PC runs the Windows XP operating system.

C:\Documents and Settings\Administrator> ftp
Connected to FTP service ready.
User ( admin1234331 Password required for admin1234.
230 User logged in.
ftp> binary200 Type set to I.

# Back up the configuration file of the device to the PC.

ftp> get vrpcfg.zip200 Port command okay.
150 Opening BINARY mode data connection for
226 Transfer complete.
ftp: 1257 bytes received in 0.03Seconds 40.55Kbytes/sec.

When the PC serves as an FTP server and the device serves as an FTP client:

# Start the FTP server program.

Start the FTP server program on the PC. Specify the FTP working directory where the configuration file is to be saved, and the IP address, port number, user name, and password of the FTP server.

# Save the current configuration on the device.

<HUAWEI> save

# Log in to the FTP server.

<HUAWEI> ftp ...
Press CTRL+K to abort
Connected to
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user   //WFTPD is the local FTP server program.
User(   //Enter the user name.
331 Give me your password, please
Enter password:   //Enter the password.
230 Logged in successfully

# Back up the configuration file of the device to the PC.

[ftp] put config.cfg200 Port command successful.
150 Opening data connection for config.cfg.
226 File received ok
FTP: 1257 byte(s) sent in 0.03 second(s) 40.55Kbyte(s)/sec.


  • After the configuration file is transferred to the PC, check whether the size of the configuration file on the PC is the same as that on the device. If not, an exception may occur during file backup. Back up the configuration file again.

  • To transfer the configuration file in a simpler way, configure the PC as the TFTP server and the device as the TFTP client. The configuration procedure is similar to the procedure when the PC serves as an FTP server and the device serves as an FTP client, except that the user name and password are not required for configuring the TFTP server. You only need to run the tftp put config.cfg command on the device.

  • TFTP has no authentication or authorization mechanism, whereas FTP has authentication and authorization mechanisms. TFTP and FTP both transfer data in plaintext mode, which bring security risks and therefore apply to good-performance networks. If you have a high requirement for network security, SFTP V2, SCP, or FTPS is recommended.

That's all for this post, if you have questions about this, please let us know.

And you can find more operations at Operation Guide For S Switch

  • x
  • convention:

Created Apr 29, 2016 08:27:36

Thank you
View more
  • x
  • convention:

Created Apr 15, 2016 01:37:07

View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.