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.