beautypg.com

H3C Technologies H3C MSR 50 User Manual

Page 53

background image

45

Figure 38 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.1.1, and that of the Ethernet interface connected to it (GigabitEthernet 0/0 in this

example) is set to 192.168.1.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:

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

Use the following command to upload the startup.cfg file to the TFTP server and save it as startup.bak:

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).

File uploaded successfully.

Use the following command to download the startup.cfg file from the server to the router:

tftp 192.168.1.1 get startup.cfg startup.cfg

The file startup.cfg exists. Overwrite it?[Y/N]:y

Verifying server file...

Deleting the old file, please wait...

File will be transferred in binary mode

Downloading file from remote tftp server, please wait...\