Installation and configuration of TFTP server in RHEL5

Source: Internet
Author: User
TFTP (TrivialFileTransferProtocol, 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. Compared with FTP, TFTP is much smaller, and TFTP is the simplest network protocol used to download remote files.

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. 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. Compared with FTP, TFTP is much smaller, and TFTP is the simplest network protocol used to download remote files. It is implemented based on UDP protocol. It uses UDP port 69.

1. Check whether the system has installed the tftp service.

[Root @ localhost/] # rpm-qa | grep tftp

Tftp-server-0.49-2

Tftp-0.49-2

If no installation is available, you can mount the RHEL5 disc and go to the Server directory for installation.

[Root @ localhost Server] # rpm-ivh tftp-*****. i386.rpm

[Root @ localhost Server] # rpm-ivh tftp-server-*****. i386.rpm

2. Modify the startup configuration file

By default, the TFTP service is disabled, so you need to modify the file to enable the Service.

Modify the/etc/xinetd. d/tftp file. It mainly sets the root directory of the TFTP server and enables the service.

The modified configuration file is as follows:

Service tftp

{

Disable = yes // change "yes" to "no ".

Socket_type = dgram

Protocol = udp

Wait = yes

User = root

Server =/usr/sbin/in. tftpd

Server_args =-s/tftpboot-c

Per_source = 11

CPIs = 100 2

Flags = IPv4

}

Specify/tftpboot as the root directory of the tftp server.

The-s parameter specifies chroot, and-c specifies that files can be created.

3. Create the tftp root directory, disable the firewall, and start the tftp-server

[Root @ localhost/] # mkdir/tftpboot

[Root @ localhost/] # chmod-R 777/tftpboot

[Root @ localhost/] #/etc/init. d/iptables stop

[Root @ localhost/] #/etc/init. d/xinetd restart

Restart the xinetd service because the TFTP service is controlled by the xinetd service.

4. Check whether the configuration is complete.

Command:

[Root @ localhost/] # netstat-a | grep tftp

Udp 0 0 *: tftp *:*

The above line indicates that the configuration is complete.

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.