H3C MSR 20/30/50 Series Routers User Manual
Chapter 5 Software Maintenance
Ethernet
ROUTER
(TFTP/FTP Client)
PC
(TFTP/FTP Server)
Console
Figure 5-8
Networking diagram for maintenance under command line mode
Configure the IP addresses of the two sides to be in the same network. In this section,
the TFTP server is set to 192.168.0.1, and the Ethernet interface connected to it
(Ethernet interface 0/0 in this example; so, any interface is OK) is set to 192.168.0.2.
Both can use the
ping
command to check if the connection is successful.
II. Backing up and recovering application program and configure file
After finishing environment building, perform the following operations:
View the files included in current file system with the
dir
command:
<H3C>dir
Directory of cf:/
0 -rw- 14323376 Apr 03 2006 15:36:48 main.bin
1 drw- - Mar 20 2006 09:55:28 logfile
2 -rw- 909 Apr 04 2006 10:54:38 configbak.cfg
3 -rw- 1045 Apr 04 2006 11:31:36 config.cfg
4 -rw- 14323376 Mar 31 2006 17:50:22 backup.bin
63340 KB total (20928 KB free)
File system type of cf: FAT32
<H3C>
Use the command as follows to backup the config.cfg file on the router to TFTP server
and save as config.bak:
<H3C>tftp 192.168.0.1 put config.cfg config.bak
File will be transferred in binary mode
Sending file to remote tftp server. Please wait... \
TFTP: 1045 bytes sent in 0 second(s).
File uploaded successfully.
Use this command to download the config.cfg file on the server to the router:
<H3C>tftp 192.168.0.1 get config.cfg config.cfg
5-19