You are on page 1of 2

6/1/2016 Backing Up the Configuration File

Backing Up the Configuration File
Context

A configuration file can be backed up in the following manners:

Procedure

Directly Copying the File

1. Run the display current­configuration command on the command line interface and copy
all command outputs into a .txt file. In this manner, the configuration file is backed up into the
hard disk of the maintenance terminal.

Backing Up the File Through TFTP

1. Directly copy the configuration file to the CFcard.
You can take the step to copy the current configuration file immediately to the CFcard of a
router. Run the following commands to copy the configuration file to the CFcard of a router
before starting the router:
<HUAWEI> copy vrpcfg.zip cfcard:/backup.zip
Copy cfcard:/vrpcfg.zip to cfcard:/backup.zip?[Y/N]:y
100%  complete
Info:Copied file cfcard:/vrpcfg.zip to cfcard:/backup.zip...Done
2. Assign an IP address to the router.
The router functions as a TFTP client.
Connect the router and maintenance terminal to set up a Telnet environment. Assign an IP
address to the interface on the router. Ensure that this IP address and the IP address of the
TFTP server are in the same network segment.
3. Run the TFTP server application program.
Run the TFTP server application program on the PC. Configure the path where the
downloaded file is to be saved, IP address of the TFTP server, and interface number.
4. Transfer the configuration file.
Run the tftp command with parameters specifying the IP address (10.110.24.209 in this
example) of the TFTP server, operation, and name of the configuration file on the command
line interface.
<HUAWEI> tftp 10.110.24.209 put vrpcfg.zip
  Transfer file in binary mode.
  Now begin to copy file to remote tftp server, please wait for a while... \
  TFTP:     1503 bytes sent in 1 seconds.
  File uploaded successfully.

Backing Up the File Through FTP

1. Connect the router and maintenance terminal to set up a Telnet environment. Assign an IP
address to the interface on the router.
2. Enable the FTP service.
The router functions as an FTP server.
Enable the functions of the FTP server. Create an FTP user with the username as HUAWEI
and password as 123. The user is authorized to access "cfcard:/".
<HUAWEI> system‐view
[HUAWEI] ftp server enable
[HUAWEI] aaa
[HUAWEI‐aaa] local‐user HUAWEI password simple 123
[HUAWEI‐aaa] local‐user HUAWEI service‐type ftp 

http://127.0.0.1:52199/hedex/hdx.do?lib=31183876&v=04&tocLib=31183876&tocV=04&id=31183876_04_18377&tocURL=resources%252fdc%255fne40ev3r7%25… 1/2
6/1/2016 Backing Up the Configuration File

[HUAWEI‐aaa] local‐user HUAWEI ftp‐directory cfcard:/
3. On the maintenance terminal, initiate an FTP connection to the router.
On the PC, set up an FTP connection with the router through the FTP client. Assume that
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 router.
Password:
230 User logged in.
4. Configure transfer parameters.
If the FTP user passes the authentication, the FTP client displays the prompt character of
"ftp>". Enter binary following the prompt character. Then, specify the path 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.
5. Transfer the configuration file.
On the PC, run the get command to download the configuration file to the specified path and
save the file as backup.zip.
ftp> get vrpcfg.zip backup.zip
200 Port command okay.
150 Opening ASCII mode data connection for vrpcfg.zip.
226 Transfer complete.
ftp: 1021 bytes received in 0.06Seconds 60.02Kbytes/sec.
ftp>

Parent topic: Backup and Restoration

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.

http://127.0.0.1:52199/hedex/hdx.do?lib=31183876&v=04&tocLib=31183876&tocV=04&id=31183876_04_18377&tocURL=resources%252fdc%255fne40ev3r7%25… 2/2

You might also like