TFTP server configuration and TFTP Server Configuration

Source: Internet
Author: User
Tags file transfer protocol ftp protocol

TFTP server configuration and TFTP Server Configuration

TFTP Server Configuration

Zhang junhao, Haidian District, Beijing

 

I. TFTP (Trivial File Transfer Protocol, simple File Transfer Protocol or small File Transfer Protocol) is a simplified File Transfer Protocol, as defined in 1980, in the TCP/IP protocol family, a protocol is used to transmit simple files between the client and the server, providing file transfer services that are not complex and costly. The port number is 69.

Small file transfer protocols are very simple and can be easily implemented through a small amount of memory-this was an important consideration at the time. Therefore, TFTP is used to guide computers, such as routers without large storage capacity. It is still used to transmit small files between hosts on a network, for example, to direct a remote XWindow System terminal or other thin clients from a network host or server.

The small File Transfer Protocol is based on the earlier file transfer protocol, which is part of the PUPProtocol. In the early work of TCP/IP protocol groups, TFTP is often the first Protocol completed on a new host type-because it is very simple.

Some details about the small File Transfer Protocol:

* Use UDP (port 69) as its transmission protocol (unlike FTP using TCP port 21 ).

* The directory content cannot be listed.

* There is no authentication or encryption mechanism.

* It is used to read or write files on a remote server.

* Three transmission modes are supported: "netascii", "octet", and "mail". The first two modes comply with the "ASCII" and "image (binary)" modes in the FTP protocol; the third method is rarely used and has been deprecated.

Because the UDP protocol is used for small file transfer, you must support transmission and session control. Each file transmitted through TFTP constitutes an independent exchange. This transmission is represented by a step lock. Only one packet (one data block or one header validation) is passed on the network at any time ). Due to the lack of window switching technology, TFTP only provides low throughput when there are many potential connections.

Due to the lack of security in the small file transfer protocol, it is very dangerous to transmit on the open Internet, so it is generally used only in private local networks.

Option Negotiation is later added to the Protocol (RFC2347). The Protocol operation can be slightly changed by the protocol option (especially when the larger part size is used, the throughput is slightly increased ), however, the Protocol remains unchanged.

 

Ii. tftp server configuration process

1. Download the tftp server and client

Sudo apt-get install tftpd-hpa tftp-hpa

2. modify the configuration file of the tftp service

Sudo vi/etc/default/tftpd-hpa

3. Create a folder in the root directory that the server shares with other clients.

Cd/

Sudo mkdir tftpboot

4. Restart the tftp service to make the configuration take effect.

Sudo/etc/init. d/tftpd-hpa restart

5. download the files under the server's shared files/tftpboot to the local device.

Tftp server-ip (server-ip writes the actual server address)

Get 1.txt (1.txt is an existing file under/tftpboot for the client to download)


How to download and upload configuration on the tftp Server

No. tftp is a small server used to transmit small files.
Format
Tftp-I ip get (put) file name

How can I enable the TFTP server on a computer in the lan?

First, download the Cisco TFTP Server from www.hanzify.org/..d%6133( if you know the vro brand, download the corresponding TFTP Server software from the vro manufacturer's website ), install it on the machine where the router upgrade file is placed (set the IP address of the machine so that it is in the same network segment as the lan ip address of the router ). Start the TFTP server software, and set the "TFTP server root directory" to the directory where your router upgrade file is located in option settings (generally under "View"-"Settings, press "OK" to complete the configuration of the TFTP server.

Next, use telnet to log on to the vrotelnet. In the vro configuration mode, use the tftp Command to upgrade the vro software system. The General Command Format is "tftp TFTP Server IP Address File Name ", if "tftp 192.168.0.2 2006.2b" is entered, the file named 2006.2b is downloaded from the TFTP server whose IP address is 192.168.0.2 to upgrade the router. For specific command parameters, refer to the vro user manual or directly view the Command help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.