Configure TFTP server and Ubuntu tutftp Server
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. The port number is 69.
TFTP is implemented based on the UDP protocol, but we cannot determine that some TFTP protocols are implemented based on other transmission protocols. This protocol is designed to transfer small files. Therefore, it does not have many FTP functions. It can only obtain or write files from the file server and cannot list directories, without authentication, it transfers 8-bit data and ensures data arrival through timeout retransmission.
Environment: Win7_64-bit + VMware11 + Ubuntu1204
1. Download and install
Sudo apt-get install tftp-hpa tftpd-hpa xinetd
# Tftp-hpa tftp client
# Tftpd-hpa tftp Server
# Xinetd supports tcp, udp, and RPC services
2. Create a directory
Sudo mkdir/tftpboot # create a tftp service directory for external sharing
Sudo chmod 0777/tftpboot
3. Configuration
Sudo vi/etc/default/tftpd-hpa # modify the configuration file
TFTP_USERNAME = "tftp" # Name
TFTP_DIRECTORY = "/tftpboot" # service path
TFTP_ADDRESS = "0.0.0.0: 69" # listener address. The default port number is 69.
TFTP_OPTIONS = "-l-c-s" #-l = listen listening mode,-c = create can upload files,-s = startup log on to the service path by default
4. Start the service
Sudo service tftpd-hpa restart # Start the service
Sudo service tftpd-hpa restart # restart the service
5. Test the application
Tftp localhost # test the Local Service
Tftp <Host ip address> # connect to the remote service
Tftp> get <filename> # download files from the tftp Server
Tftp> put <filename> # upload a file to the tftp Server