The tftp command uploads the local file to the TFTP server or download the file from the TFTP server to the local machine.
Parameter | Description | Value |
---|---|---|
-a source-ip-address |
Specifies the source IPv4 address of the local machine. |
In dotted decimal notation. |
-i interface-name |
Specifies the source interface type and source interface name. |
- |
interface-type |
Specifies the source interface type and source interface type. |
- |
interface-number |
Specifies the source interface type and source interface number. |
- |
host-ip-address |
Specifies the IPv4 address of the remote system or the host with a specific name. To view the mapping between the IPv4 address and host name, run the display dns dynamic-host or display ip host command. |
|
vpn-instance vpn-instance-name |
Specifies the VPN instance name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
public-net |
Indicates that the TFTP server on the public network is connected. |
- |
get |
Specifies the downloading files from the remote TFTP server. |
- |
put |
Specifies the uploading local files to the remote TFTP server. |
- |
source-filename |
Specifies the source file name. |
Source file name is string data type. The string length range is from 1 to 128 characters. It can contain alphanumeric and special characters. |
destination-filename |
Specifies the name of the destination file. |
Destination file name is string data type. The string length range is from 1 to 128 characters. It can contain alphanumeric and special characters. |
<HUAWEI> tftp 10.1.1.2 get sample.txt sample1.txt
<HUAWEI> tftp 10.1.1.2 put sample.txt
<HUAWEI> tftp -a 10.1.1.2 vpn-instance vrp 10.1.1.1 get sample.txt sample1.txt