Configure TFTP server and Ubuntu tutftp Server

Source: Internet
Author: User
Tags file transfer protocol

Configure TFTP server and Ubuntu tutftp Server

TFTP (Trivial File Transfer Protocol, simple File Transfer Protocol) is a Protocol used in the TCP/IP Protocol family to transmit simple files between the client and the server, provides File Transfer services that are not complex and costly. The port number is 69.

TFTP is implemented based on the UDP protocol, but we cannot determine that some TFTP protocols are implemented based on other transmission protocols. This protocol is designed to transfer small files. Therefore, it does not have many FTP functions. It can only obtain or write files from the file server and cannot list directories, without authentication, it transfers 8-bit data and ensures data arrival through timeout retransmission.

Environment: Win7_64-bit + VMware11 + Ubuntu1204

  1. Download and install

Sudo apt-get install tftp-hpa tftpd-hpa xinetd

# Tftp-hpa tftp client

# Tftpd-hpa tftp Server

# Xinetd supports tcp, udp, and RPC services

  2. Create a directory

Sudo mkdir/tftpboot # create a tftp service directory for external sharing

Sudo chmod 0777/tftpboot

3. Configuration

Sudo vi/etc/default/tftpd-hpa # modify the configuration file

TFTP_USERNAME = "tftp" # Name

TFTP_DIRECTORY = "/tftpboot" # service path

TFTP_ADDRESS = "0.0.0.0: 69" # listener address. The default port number is 69.

TFTP_OPTIONS = "-l-c-s" #-l = listen listening mode,-c = create can upload files,-s = startup log on to the service path by default

  4. Start the service

Sudo service tftpd-hpa restart # Start the service

Sudo service tftpd-hpa restart # restart the service

5. Test the application

Tftp localhost # test the Local Service

Tftp <Host ip address> # connect to the remote service

Tftp> get <filename> # download files from the tftp Server

Tftp> put <filename> # upload a file to the tftp Server

 

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.