Tftp: Difference between revisions
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
} | } | ||
Edit ''/usr/lib/systemd/system/tftp.service' | Edit ''/usr/lib/systemd/system/tftp.service': | ||
[Unit] | [Unit] | ||
Line 27: | Line 27: | ||
Requires=tftp.socket | Requires=tftp.socket | ||
Documentation=man:in.tftpd | Documentation=man:in.tftpd | ||
[Service] | [Service] | ||
ExecStart=/usr/sbin/in.tftpd -c -s /tftpboot | ExecStart=/usr/sbin/in.tftpd -c -s /tftpboot | ||
StandardInput=socket | StandardInput=socket | ||
[Install] | [Install] | ||
Also=tftp.socket | Also=tftp.socket | ||
Revision as of 12:08, 9 August 2023
RHEL7
Installation:
yum install tftp tftp-server* xinetd*
DONOTDOIT Edit file /etc/xinetd.d/tftp: set 'disable=no', add '-c' to server_args, and change directory to '/tftpboot'
service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -c -s /tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 }
Edit /usr/lib/systemd/system/tftp.service':
[Unit] Description=Tftp Server Requires=tftp.socket Documentation=man:in.tftpd [Service] ExecStart=/usr/sbin/in.tftpd -c -s /tftpboot StandardInput=socket [Install] Also=tftp.socket
Enable and Start TFTP Service
systemctl enable xinetd systemctl enable tftp systemctl start xinetd systemctl start tftp
After these two commands, permanent links will be made for xinetd and TFTP services.
old (solaris)
Tftp is used in particular to download images into ROCs, PMCs and IOCs. To activate, uncomment following line in /etc/inetd.conf file:
tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot
and run
inetconv
to generate manifest file. Start 'tftp' service:
svcadm enable /network/tftp/udp6
Create directorory /tftpboot. All files you want to download using 'tftp' must be placed in that directory. Normally you will copy all files from another machine running 'tftp' service.