H3C MSR 20/30/50 Series Routers User Manual
Chapter 5 Software Maintenance
Now, we can use the following command to perform maintenance of the router. In this
example, the main.bin file on the router is backed up to the PC.
ftp> binary
Change the transfer mode to binary
200 Type set to I.
ftp> lcd c:\temp Change local path
Local directory now C:\temp.
ftp> get main.bin main.bin Backup files to PC from the router
200 Port command okay.
150 Opening BINARY mode data connection for main.bin.
226 Transfer complete.
ftp: 14323376 bytes received in 16.81Seconds 851.87Kbytes/sec.
Recover the backup file to the router command:
ftp> put main.bin main.bin Recover the local file to the router
200 Port command okay.
150 Opening BINARY mode data connection for main.bin.
226 Transfer complete.
ftp: 14323376 bytes sent in 8.29Seconds 1727.37Kbytes/sec.
ftp> quit Quit the FTP
221 Server closing.
II. Maintaining the router when it serves as the client
You can also maintain the router file system by building FTP server and making the
router serve as the client.
Step 1: Build maintenance environment as follows:
Ethernet
ROUTER
(TFTP/FTP Client)
PC
(TFTP/FTP Server)
Console
Figure 5-10
Router maintenance when it serves as the client
When the router serves as the client, you can run FTP server program on your PC as
the FTP server, and set the server path. Then, add user name and password for the
router.
Configure the IP addresses of the two sides to be in the same network. In this section,
the FTP 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.
5-22