TFTP is a simple File transfer protocol that is used during PXE deployment to transfer the initial boot program, kernel, and configuration files.
The following experiments were completed on CentOS 7.2
[Email protected] ~]# cat/etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[Email protected] ~]# uname-r
3.10.0-327.10.1.el7.x86_64
Yum Direct Installation
[Email protected] ~]# yum-y install Tftp-server
RPM Check configuration file path
[Email protected] ~]# RPM-QC tftp-server
/etc/xinetd.d/tftp
Modifying a configuration file
Disable change to no enable TFTP service
-C allows TFTP write
-VVV record verbose log, this parameter is written in the last
/var/lib/tftpboot is the default TFTP home directory, if you modify this path remember to set SELinux-related permissions
Disable = no
Server_args =-s-c/VAR/LIB/TFTPBOOT-VVV
Restart Daemon xinetd Effective after modifying configuration file
[Email protected] ~]# systemctl restart Xinetd.service
Configure the boot autorun xinetd process
[Email protected] ~]# Systemctl enable Xinetd.service
Check xinetd boot status
[Email protected] ~]# systemctl status Xinetd.service
XINETD.SERVICE-XINETD A powerful replacement for Inetd
loaded:loaded (/usr/lib/systemd/system/xinetd.service; disabled; vendor preset:enabled)
Active:active (running) since Thu 2016-03-10 08:51:30 EST; 17s ago
Allow TFTP traffic when the firewall is turned on, perment parameter indicates permanent, no this firewall rule fails after reboot.
Firewall-cmd--add-service=tftp--permenent
Restart Firewall service to take effect of the above rules
[Email protected] ~]# systemctl restart Firewalld.service
Check TFTP port listening status
Ss-ul | grep tftp
[Email protected] ~]# Ss-ul | grep tftp
Unconn 0 0 *:tftp *:*
Unconn 0 0::: tftp:::*
High-rise flat bottom: Red Hat 7-series TFTP server Setup