Ubuntu tftp settings

Source: Internet
Author: User

The Ubuntu system's hair style brings good news to some household users. So here, how do we set Ubuntu tftp? The Ubuntu team makes a public commitment to its users: Ubuntu is always free and there is no additional fee for the "Enterprise Edition". In the same free team, bring the best work results to everyone.

To configure the Ubuntu tftp service, follow these steps:

1. Install related software packages: Ubuntu tftp Server), tftp client), xinetd

Sudo apt-get install tftpd tftp xinetd

2. Create a configuration file
Create a configuration file tftp under/etc/xinetd. d/
Sudo vi tftp
Enter the following content in the file:
Service tftp
{Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/tftpboot
Disable = no
Per_source = 11
CPIs = 100 2
Flags = IPv4}
Save and exit

3. Create the Ubuntu tftp service file directory to upload and download files) and change its permissions.
Sudo mkdir/tftpboot
Sudo chmod 777/tftpboot-R

4. Restart the service
Sudo/etc/init. d/xinetd restart
Now that the Ubuntu tftp service has been installed, you can test it. Put a test file test.txt in the current directory)
$ Tftp 127.0.0.1
Tftp> put test.txt
Sent 1018 bytes in 0.0 seconds
Tftp> get test.txt
Received 1018 bytes in 0.1 seconds
Tftp> quit

With the getcommand, you can upload the test.txt file under the current directory to its service file directory through Ubuntu tftp. In this case, the test.txt file is displayed under/tftpboot. Run the put command to download the test.txt file from/tftpboot. This verifies the correctness of the configuration of the Ubuntu tftp service. After the file is uploaded and downloaded, exit with the quit command. You can configure the Ubuntu tftp service strictly according to the preceding steps. If you cannot get or put data, check whether the firewall is disabled.

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.