Full solution TFTP service configuration Experiment

Source: Internet
Author: User
Tags file transfer protocol

In the process of learning network protocols, we will inevitably feel a little unfamiliar with the configuration content. Here we will conduct a TFTP service configuration experiment to help you master the TFTP service configuration process.

TFTP service configuration experiment content

TFTPTrivial 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. TFTP is carried on UDP and provides unreliable data stream transmission services. It does not provide access authorization and authentication mechanisms, and uses the timeout retransmission method to ensure data arrival.

Tutorial on TFTP service configuration

Through experiments, trainees can master the TFTP service configuration methods.

TFTP service configuration lab platform

A pc with a Linux operating system is connected over Ethernet.

Procedure

Step 1. Configure the server

Run the following command to install the TFTP server.

Linux @ farsight :~ $ Sudo apt-get install tftp-hpa tftpd-hpa xinetd

Reading the package list... complete

Analyzing the dependency tree of the software package

Reading status information... complete

Recommended software packages:

Inet-superserver

The following new software packages will be installed:

Tftp-hpa tftpd-hpa xinetd

A total of 0 software packages have been upgraded, 3 new software packages have been installed, 0 software packages have to be uninstalled, and 9 software have not been upgraded.

Download the 198kB software package.

After decompression, the extra space of 631kB is consumed.

Get: 1 http://archive.ubuntu.com intrepid/main tftp-hpa 0.48-2.2ubuntu1 [24.5kB]

Get: 2 http://archive.ubuntu.com intrepid/main tftpd-hpa 0.48-2.2ubuntu1 [35.2kB]

Get: 3 http://archive.ubuntu.com intrepid/main xinetd. 3.14-7ubuntu1 [139kB]

Download 198kB, which takes 14 s (13.8kB/s)

Configuring the software package...

The software package tftp-hpa was deselected.

(Reading the database... the system currently has a total of 108543 files and directories installed .)

Extracting tftp-hpa (from.../tftp-hpa_0.48-2.2ubuntu1_i386.deb )...

The software package tftpd-hpa was deselected.

Extracting tftpd-hpa (from.../tftpd-hpa_0.48-2.2ubuntu1_i386.deb )...

Select the software package xinetd that has been canceled.

Extracting xinetd (from.../xinetd_1% 3a2. 3.14-7ubuntu1_i386.deb )...

Processing the trigger for man-db...

Setting tftp-hpa (0.48-2.2ubuntu1 )...

Setting tftpd-hpa (0.48-2.2ubuntu1 )...

Setting xinetd (. 3.14-7ubuntu1 )...

 
 
  1. * Stopping internet superserver xinetd                                                  [ OK ]  
  2.  
  3. * Starting internet superserver xinetd                                                   [ OK ] 

You can also download these software packages:

 
 
  1. tftp-hpa_0.48-2.2ubuntu1_i386.deb  
  2.  
  3. tftpd-hpa_0.48-2.2ubuntu1_i386.deb  
  4.  
  5. xinetd_1_3a2.3.14-7ubuntu1_i386.deb  

Then

Sudo dpkg-I *. deb install these packages

Step 2 of the TFTP service configuration experiment. Add a configuration file

 
 
  1. linux@farsight:~$sudo vim /etc/xinetd.d/tftp 

Add the following content:

 
 
  1. service tftp  
  2. {  
  3. disable = no 
  4. socket_type   = dgram 
  5. protocol   = udp 
  6. wait    = yes 
  7. user    = root 
  8. server    = /usr/sbin/in.tftpd  
  9. server_args   = -s /tftpboot  
  10. per_source   = 11 
  11. cps    = 100 2  
  12. flags    = IPv4 

Step 3. start/stop the TFTP service

 
 
  1. linux@farsight:~$ sudo /etc/init.d/xinetd stop  
  2. * Stopping internet superserver xinetd                                                [ OK ]  
  3.  
  4. linux@farsight:~$ sudo /etc/init.d/xinetd status  
  5. * xinetd is not running  
  6.  
  7. linux@farsight:~$ sudo /etc/init.d/xinetd start  
  8. * Starting internet superserver xinetd                                                 [ OK ]  
  9.  
  10. linux@farsight:~$ sudo /etc/init.d/xinetd status  
  11. * xinetd is running.  
  12.  
  13. linux@farsight:~$ sudo /etc/init.d/xinetd restart  
  14.  
  15. * Stopping internet superserver xinetd                                               [ OK ]  
  16.  
  17. * Starting internet superserver xinetd                                                [ OK ] 

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.