Maintaining the router through tftp server, Setting up a configuration environment – H3C Technologies H3C MSR 30 User Manual
Page 59
51
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
Step1
Set up a hardware environment (refer to
Upgrading an Application Program Through an Ethernet
for details), and point the server path to the directory where the file is stored.
Figure 54 Network diagram for maintenance through command lines
Step2
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 (GigabitEthernet 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:
Step1
Use the dir command to view the files in the current file system:
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
Step2
Use the following command to upload the startup.cfg file to the TFTP server and save it as config.bak:
File will be transferred in binary mode