beautypg.com

Maintaining the router through tftp server, Setting up a configuration environment – H3C Technologies H3C MSR 20-1X User Manual

Page 45

background image

38

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

47

for details), and point the server path to the directory where the file is stored.

Figure 33 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:

dir

Directory of flash:/

0 -rw- 15801497 Jan 01 2007 00:14:35 main.bin

1 -rw- 9187 Jan 01 2007 00:12:23 config.cwmp

2 -rw- 139 Jan 01 2007 00:05:39 system.xml

3 -rw- 800 Jan 01 2007 00:12:28 startup.cfg

31369 KB total (15921 KB free)

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

This manual is related to the following products: