< Home

tftp client-source

Function

The tftp client-source command sets the loopback address or loopback interface as the source address or source interface of the device that functions as a TFTP client.

Format

tftp client-source { -a source-ip-address | -i interface-type interface-number }

undo tftp client-source

Parameters

Parameter Description Value

-a source-ip-address

Specifies the IPv4 address of the local device.

-

-i interface-type interface-number

Specifies the outbound interface on the local device.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

When you run the tftp command to log in to a TFTP server without specifying a source address or source interface, the source address or interface that is specified by tftp client-source is adopted by default. If you run the tftp command and specify a source address or source interface at the same time, you can log in to the TFTP server with the specified source address or interface. When you view the current TFTP connection on the server, the specified source IP address or the primary IP address of the specified loop interface is displayed as the IP address of the user.

Example

# Set the source IP address of the TFTP client to 1.1.1.1.

<sysname> system-view
[sysname] tftp client-source -a 1.1.1.1
Info: Succeeded in setting the source address of the TFTP client to 1.1.1.1.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >