No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
tftp

tftp

Function

The tftp command uploads a file to the TFTP server or downloads a file to the local device.

Format

# Upload a file to the TFTP server or download a file to the local device based on the IPv4 address

tftp [ -a source-ip-address | -i interface-type interface-number ] tftp-server { get | put } source-filename [ destination-filename ]

# Upload a file to the TFTP server or download a file to the local device based on the IPv6 address

tftp ipv6 [ -a source-ipv6-address ] tftp-server-ipv6 [ -oi interface-type interface-number ] { get | put } source-filename [ destination-filename ]

Parameters

Parameter Description Value
-a source-ip-address Specifies the source IP address for connecting to the TFTP client. You are advised to use the loopback interface IP address. The value is in dotted decimal notation.
-a source-ipv6-address Specifies the source IP address for connecting to the TFTP client. You are advised to use the loopback interface IP address. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
-i interface-type interface-number

Specifies the source interface used by the TFTP client to set up connections. It consists of the interface type and number. It is recommended that you specify a loopback interface.

The IP address configured for this interface is the source IP address for sending packets. If no IP address is configured for the source interface, the TFTP connection cannot be set up.

-
-oi interface-type interface-number

Specifies an outbound interface on the local device.

If the remote host uses an IPv6 address, you must specify the outbound interface on the local device.
tftp-server Specifies the IPv4 address or host name for the TFTP server.

The value is a string of 1 to 255 case-insensitive characters without spaces.

tftp-server-ipv6 Specifies the IPv6 address or host name for the TFTP server.

The value is a string of 1 to 255 case-insensitive characters without spaces.

get Download a file. -
put Upload a file. -
source-filename Specifies the source file name. The value is a string of 1 to 64 case-sensitive characters without spaces.
destination-filename Specifies the destination file name. The value is a string of 1 to 64 case-sensitive characters without spaces. By default, source and destination file names are the same.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When upgrading the system, you can run the tftp command to upload an important file to the TFTP server or download a system software to the local device.

Precautions

  • When you run the tftp command to upload a file to the TFTP server in TFTP mode, files are transferred in binary mode by default. The tftp does not support the ASCII mode for file transfer.
  • After specifying a source IP address, you can use this IP address to communicate with the server and implement packet filtering to ensure data security.

Example

# Download file vrpcfg.txt from the root directory of the TFTP server to the local device. The IP address of the TFTP server is 10.1.1.1. Save the downloaded file to the local device as file vrpcfg.bak.

<Huawei> tftp 10.1.1.1 get vrpcfg.txt flash:/vrpcfg.bak

# Upload file vrpcfg.txt from the root directory of the storage device to the default directory of the TFTP server. The IP address of the TFTP server is 10.1.1.1. Save file vrpcfg.txt on the TFTP server as file vrpcfg.bak.

<Huawei> tftp 10.1.1.1 put flash:/vrpcfg.txt vrpcfg.bak

# Obtain the link local IP address and interface name from the TFTP server.

<Huawei> tftp ipv6 fe80::250:daff:fe91:e058 -oi gigabitethernet 0/0/1 get file1 file2
Related Topics
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 90613

Downloads: 61

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next