Displaying and maintaining the tftp client – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 237

Advertising
background image

222

When using the tftp client source or tftp command, you can specify the source interface (such as a

loopback interface) or source IP address. The primary IP address of the specified source interface or the
specified source IP address is used as the source IP address of sent TFTP packets.
The TFTP client follows these rules to select the source IP address of packets sent to the TFTP server:

If no source IP address is specified, the IP address of the output interface of the route to the server
is used as the source IP address.

The source IP address specified with the tftp client source or tftp command is used.

If you first use the tftp client source command to specify a source IP address and then use the tftp
command to specify another source IP address, the latter is used.

The source IP address specified with the tftp client source command applies to all TFTP connections
while the one specified with the tftp command applies to the current TFTP connection only.

Follow these steps to configure the TFTP client:

To do…

Use the command…

Remarks

Enter system view

system-view

Use an ACL to control the device’s
access to TFTP servers

tftp-server acl acl-number

Optional
By default, no ACL is used to

control the device’s access to
TFTP servers.

Specify the source IP address of
sent TFTP packets

tftp client source { interface
interface-type interface-number | ip

source-ip-address }

Optional
By default, the source IP address
is determined by the route from

the TFTP client to the TFTP server.

Return to user view

quit

Download or upload a file in an
IPv4 network

tftp server-address { get | put | sget }
source-filename

[ destination-filename ] [ source

{ interface interface-type
interface-number
| ip

source-ip-address } ]

Optional
Available in user view

NOTE:

If no primary IP address is configured on the source interface, no TFTP connection can be established.

If you use the tftp client source command to configure a source interface and then use it to configure a
source IP address, the source IP address overwrites the source interface, and vice versa.

Displaying and maintaining the TFTP client

To do…

Use the command…

Remarks

Display the source IP address configuration
of the TFTP client

display tftp client configuration

Available in any view

Advertising