Configuring the tftp client – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 540

Advertising
background image

58-2

Before using TFTP, the administrator needs to configure IP addresses for the TFTP client and server,
and make sure that there is a route between the TFTP client and server.

Configuring the TFTP Client

When a device acts as a TFTP client, you can upload files on the device to a TFTP server and download
files from the TFTP server to the local device. You can use either of the following ways to download files:

z

Normal download: The device writes the obtained files to the storage device directly. In this way,
the original system file will be overwritten and if file download fails (for example, due to network
disconnection), the device cannot start up normally because the original system file has been
deleted.

z

Secure download: The device saves the obtained files to its memory and does not write them to the
storage device until all user files are obtained. In this way, if file download fails (for example, due to
network disconnection), the device can still start up because the original system file is not
overwritten. This mode is securer but consumes more memory.

You are recommended to use the latter mode or use a filename not existing in the current directory as
the target filename when downloading startup file or configuration file.

Multiple routes may exist for a TFTP client to successfully access the TFTP server. You can specify one
by configuring the source address of the packets from the TFTP client to meet the requirement of the
security policy of the TFTP client. You can configure the source address by configuring the source
interface or source IP address. The primary IP address configured on the source interface is the source
address of the transmitted packets. The source address of the transmitted packets is selected following
these rules:

z

If no source address of the TFTP client is specified, a device uses the IP address of the interface
determined by the routing protocol as the source IP address to communicate with a TFTP server.

z

If the source address is specified with the tftp client source or tftp command, this source address
is adopted.

z

If the source address is specified with the tftp client source command and then with the tftp
command, the source address configured with the latter one is used to communicate with a TFTP
server.

The source address specified with the tftp client source command is valid for all tftp connections and
the source address specified with the tftp command is valid only for the current tftp connection.

Follow these steps to configure the TFTP client:

To do…

Use the command…

Remarks

Enter system view

system-view

Reference an access control list
(ACL) to the TFTP server

tftp-server

[ ipv6 ] acl acl-number

Optional

Configure the source address of
the TFTP client

tftp client source

{ interface

interface-type interface-number

|

ip

source-ip-address }

Optional
A device uses the source address
determined by the routing protocol
to communicate with the TFTP
server by default.

Return to user view

quit

Advertising