The TFTP command uses the TFTP protocol between the native and TFTP servers to transfer files.
TFTP is the simplest network protocol for downloading remote files, which is implemented in the UDP protocol.
Linux server-side tftp-serverconfiguration 1, install TFTP server need to install xinetd (Guardian tftp), TFTP and tftp-server 3 software 1) If you can surf the Internet, install via Yum:
sudo Yum Install xinetd sudo Yum Install TFTP sudo Yum Install Tftp-server
2) If the Internet is not available, you can install the provided RPM package directly:
RPM-IVH xinetd-2.3. -ivh tftp-0.48-3-ivh tftp-server-0.48- 3 . fc9.i386.rpm
2. Configuring the TFTP server
Modify the/etc/xinetd.d/tftp file to change the Disable=yes to Disable=no. Enable TFTP service
The main is to set the root directory of the TFTP server to open the service. The modified file is as follows:
service tftp{socket_type =dgram Protocol =udp wait =yes user =root Server =/usr/sbin/in .tftpd Server_args =-s/home/walt740/tftpboot-c Disable =no per_source =11 CPS =100 2 flags =ipv4}
Description: Modify the entry server_args=-s-c, where you can change to the root of your tftp-server, parameter-s specifies that chroot,-c specifies that you can create a file.
3. Start the TFTP server and turn off the firewall
7+7-://sudo /sbin//etc/init.d/xinetd Start
See boot [OK] on it.
4. Check if the TFTP service is turned on
netstat-a | grep tftp
Show results as
UDP6 0 0 [::]:tftp [::]:*
Indicates that the service has been turned on, indicating that the TFTP configuration was successful.
5. TFTP command usage is as follows
TFTP your-ip-address
"Go to TFTP operation"
Connect: Connecting to a remote TFTP server
Mode: File transfer modes
Put: Uploading Files
Get: Download file
Quit: Quit
VERBOSE: Show detailed processing information
Tarce: Show Package path
Status: Displays current status information
Binary: Binary transfer mode
Ascii:ascii Transfer Mode
REXMT: Set time-out for packet transfer
Timeout: Set the time-out for retransmission
Help: Helpful Information
?: Help Information
6, command to use Linux Direct file/fetch files to Windows
TFTP 192.168.1.107
Tftp> put 123.txt
Tftp> Get 456.txt
TFTP installation and usage notes in Linux