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

CLI-based Configuration Guide - Basic Configuration

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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).
Managing Files When the Device Functions as a TFTP Server

Managing Files When the Device Functions as a TFTP Server

Users can use the TFTP protocol to manage files, for example, performing version upgrade.

Pre-configuration Tasks

Before managing files using TFTP, complete the following task:

  • Configure reachable routes between the TFTP server and TFTP client.

Configuration Process

NOTE:

The TFTP protocol has security risks; therefore, SFTPv2 is recommended for file management.

Table 11-6 describes the configuration process for managing files using TFTP.

Table 11-6  Managing files using TFTP
No. Task Description Remarks
1 Configuring the TFTP Server Function and Related Parameters Enable the TFTP server function and configure the following parameters: port number, working directory, and packet timeout period. -
2 Uploading or Downloading Files Using TFTP Access the device from a TFTP client. -

Procedure

  • Configure the TFTP server function and related parameters.

    Table 11-7  Configuring the TFTP server function and related parameters
    Procedure Command Description

    Enter the system view.

    system-view -

    (Optional) Configure a port number for the TFTP server.

    tftp server port port-number

    By default, the port number of the TFTP server is 69.

    NOTE:

    Ensure that the TFTP service is disabled before you run this command. If the TFTP service is enabled, the port number of the TFTP server cannot be changed. Run the undo tftp server enable command first to disable the TFTP service and then change the port number.

    When the port number of the TFTP server is 69, a TFTP client can connect to the TFTP server without the need to specify a port number. When the port number of the TFTP server is not 69, you need to specify a port number for the TFTP client before it can connect to the TFTP server, and the specified client port number must be the same as the server port number.

    (Optional) Configure a packet timeout period for the TFTP server.

    tftp server timeout timeout-second

    By default, the packet timeout period of a TFTP server is 5 seconds.

    The TFTP server will resend a packet if it does not receive any response within the specified timeout period. If the packet times out three times, the TFTP server disconnects the TFTP connection.

    Configure a working directory for the TFTP server.

    set default tftp-directory directory

    By default, no working directory is configured for the TFTP server.

    Enable the TFTP server function.

    tftp server enable

    By default, the TFTP server function is disabled.

    Configure a working directory for the TFTP server before you run this command.

    NOTE:

    After file operations between the client and device are complete, run the undo tftp server enable command to disable the TFTP server function in a timely manner to protect device security.

  • Upload or download files using TFTP.

    • The device can communicate with a terminal that functions as the TFTP client. In this case, install and run TFTP software on the terminal before performing TFTP operations. For details on how to use TFTP software, see the help document of the third-party TFTP software.
    • The device can communicate with another device that functions as the TFTP client. In this case, you can run the following commands on the TFTP client.

      Procedure Command Description

      Run the TFTP command to manage files.

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

      Select one of them based on the address type.

      • get: download files.

      • put: upload files.

      NOTE:

      You cannot access a TFTP client with an IPv6 address.

Verifying the Configuration

  • Run the display tftp-server status command to check the TFTP server information.

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 45067

Downloads: 100

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