36
Maintaining the Router Through TFTP Server
In the TFTP service, the router is TFTP client and the file server is the TFTP server. You can enter commands
on the terminal to upload or download configuration files or application programs to or from the file
server.
Setting up a configuration environment
Set up a hardware environment (refer to
Upgrading an Application Program Through an Ethernet
Interface
on page
46
for details), and point the server path to the directory where the file is stored.
Figure 29
Network diagram for maintenance through command lines
Configure the IP addresses of both sides on the same network. For example, the IP address of the TFTP
server is set to 192.168.0.1, and that of the Ethernet interface connected to it (Ethernet 0/0 in this
example) is set to 192.168.0.2. Use the
ping
command to check whether the connection successful.
Backing up and restoring application programs and configuration files
After setting up the environment, perform the following operations on the console terminal:
Use the
dir
command to view the files in the current file system:
<SYSTEM>dir
Directory of cfa0:/
0 drw- - Dec 20 2007 09:18:22 logfile
1 -rw- 22165484 Dec 20 2007 09:18:10 update.bin
2 -rw- 1181 Dec 20 2007 09:42:54 startup.cfg
4 -rw- 22165484 Dec 20 2007 09:42:28 main.bin
252904 KB total (208940 KB free)
File system type of cfa0: FAT16
<SYSTEM>
Use the following command to upload the startup.cfg file to the TFTP server and save it as startup.bak:
<SYSTEM>tftp 192.168.1.1 put startup.cfg startup.bak
File will be transferred in binary mode
Sending file to remote tftp server. Please wait... \
TFTP: 1045 bytes sent in 0 second(s).