Tftp client configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual

Page 281

Advertising
background image

2-4

TFTP Client Configuration Example

Network requirements

z

As shown in

Figure 2-2

, use a PC as the TFTP server and Device as the TFTP client. Their IP

addresses are 1.2.1.1/16 and 1.1.1.1/16 respectively. An available route exists between Device

and PC.

z

Device downloads a startup file from PC for upgrading and uploads a configuration file named

config.cfg to PC for backup.

Figure 2-2 Smooth upgrading using the TFTP client function

Configuration procedure

1) Configure PC (TFTP Server), the configuration procedure is omitted.

z

On the PC, enable the TFTP server

z

Configure a TFTP working directory

2) Configure Device (TFTP Client)

If the available memory space of the device is not enough, use the fixdisk command to clear the

memory or use the delete /unreserved file-url command to delete the files not in use and then perform

the following operations.

# Enter system view.

<Sysname> system-view

# Download application file newest.bin from PC.

<Sysname> tftp 1.2.1.1 get newest.bin

# Upload a configuration file config.cfg to the TFTP server.

<Sysname> tftp 1.2.1.1 put config.cfg configback.cfg

# Specify newest.bin as the main startup file to be used at the next startup.

<Sysname> boot-loader file newest.bin bbb.bin main

# Reboot the device and the software is upgraded.

<Sysname> reboot

Advertising