Home Common Problem tftp execution process

tftp execution process

Jan 08, 2020 am 10:28 AM
tftp

tftp execution process

TFTP (Trivial File Transfer Protocol) is a protocol in the TCP/IP protocol suite used for simple file transfer between the client and the server. Protocol that provides uncomplicated and inexpensive file transfer services. The port number is 69. (Recommended learning: PHPSTORM )

TFTP is a simple protocol for transmission files. It is implemented based on the UDP protocol, but we cannot determine that some TFTP protocols are based on other transmission protocols. Completed.

This protocol is designed for small file transfer. Therefore it does not have many of the features of the usual FTP, it can only get or write files from the file server, it cannot list directories, it does not authenticate, and it transfers 8-bit data.

There are three modes in transmission: netascii, which is an 8-bit ASCII code form, and the other is octet, which is an 8-bit source data type; the last mail is no longer supported, and it will return Data is returned directly to the user rather than saved to a file.

TFTP is the simplest network protocol used to download remote files. It is implemented on the UDP protocol. The tftp development environment of embedded Linux includes two aspects: one is tftp-server support on the Linux server side, and the other is tftp-client support for the embedded target system.

Because u-boot itself has built-in support for tftp-client, there is no need to configure the embedded target system. The following will introduce the configuration of tftp-server on the Linux server side in detail.

1. Install tftp server

You need to install xinetd, tftp and tftp-server 3 software

If you can access the Internet, use yum Installation:

yum 
 xinetd
yum install tftp
yum install tftp-server

If you cannot access the Internet, you can directly install the provided rpm package:

rpm -ivh xinetd-2.3.14-18.fc9.i386.rpm
rpm -ivh tftp-0.48-3.fc9.i386.rpm
rpm -ivh tftp-server-0.48-3.fc9.i386.rpm

2. Configure tftp server

Modify the /etc/xinetd.d/tftp file and change disable=yes to disable=no. The main thing is to set the root directory of the TFTP server and start the service. The modified file is as follows:

 tftp
{
       socket_type           =dgram
       protocol              =udp       
                  =yes
       user                  =root
       server                =/usr/sbin/in.tftpd
       server_args           =-s  /home/mike/tftpboot -c
       disable               =no
       per_source            =11
       cps                   =100 2
       flags                 =IPv4
}

Description: Modify the item server_args= -s -c, where can be changed to the root directory of your tftp-server, parameters -s specifies chroot, and -c specifies that files can be created.

3. Start the tftp server and turn off the firewall

/etc/
.d/
 stop        //关闭防火墙
 /sbin/service xinetd start

or

service xinetd restart
/etc/init.d/xinetd start

Just see Start [OK]

4. Check whether the tftp service is enabled.

 -a | 
 tftp

The displayed result is udp 0 0 *:tftp *:*, indicating that the service has been enabled, which indicates that the tftp configuration is successful.

5. tftp uses

to copy a file to the tftp server directory, and then start the tftp software on the host for a simple test.

tftp 192.168.1.2
tftp>get <download 
> 

tftp>put <upload file>
tftp>q

The above is the detailed content of tftp execution process. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to check my graphics card driver version How to check my graphics card driver version Jun 30, 2025 am 12:29 AM

If you want to view the graphics card driver version on your computer, you can do it by: 1. Use Device Manager to view: Win X to open the Device Manager, expand the display adapter, right-click the graphics card to select properties, and view the version and date in the driver tab; 2. View through DirectX diagnostic tool: Win R enter dxdiag to view the driver version and related graphics information in the display tab; 3. Use the official software of the graphics card manufacturer to query: such as NVIDIA's GeForceExperience, AMD's Radeon Software or Intel's Driver&Support Assistant, the main interface will display the current driver status and support updates; 4.

How to change the default installation directory in Windows How to change the default installation directory in Windows Jun 29, 2025 am 12:12 AM

To change the problem of Windows software being installed on C drive by default, there are three methods to solve it: First, modify the system user folder path, which is suitable for new users. The default folder such as "document" and "download" will point to the new path, but it will not affect the installation path of the third-party software; Second, use symbolic links, first install to the C drive and then move to other disks, and create links to deceive the system identification; Third, manually select the path during installation, which is the most common method, and most software supports custom installation directories. Note that the path does not contain Chinese or special characters, so you need to run the installer as an administrator to avoid permission issues.

Can I uninstall Microsoft Edge Can I uninstall Microsoft Edge Jul 02, 2025 am 12:13 AM

Microsoft Edge can be uninstalled, but because it is a Windows system component, it cannot be uninstalled directly through the control panel like ordinary software. 1. Use a command prompt (administrator permissions) to uninstall the Edge installation package; 2. You can disable or replace Edge with the help of third-party tools; 3. Enterprise users can manage through Group Policy. Even if uninstalled, it may still be redeployed when the system is updated. Alternatives include: setting other browsers as default, manually removing the Edge icon, and hiding Edge using scripts. Users suitable for uninstallation include system geeks, enterprise unified management needs, and low-end device users who want to release resources. Ordinary users only need to change the default browser to avoid interference.

How to turn off wifi on my router remotely How to turn off wifi on my router remotely Jul 05, 2025 am 12:28 AM

If you want to remotely turn off the router Wi-Fi, you must first confirm whether the router supports remote management; if it does not support it, it can be achieved through a smart socket power outage; advanced users can also consider flashing in custom firmware. The specific steps are as follows: 1. Check whether the router has remote management functions, such as the manufacturer's supporting app or cloud management functions; 2. If it is not supported, purchase and set up a smart socket and remotely cut off power through its app; 3. For technical users, you can install firmware such as DD-WRT or OpenWRT to obtain remote control permissions. Different methods have their own advantages and disadvantages. Please weigh them according to your own needs when choosing.

How to create a system restore point How to create a system restore point Jul 07, 2025 am 12:17 AM

System restore point setting methods include manual creation, dependency automatic creation, and management of storage space. 1. Manual creation requires system protection to enable in "Create Restore Point", allocate 5% disk space and click "Create" to name the restore point; 2. The system will automatically create restore points when installing updates or changing settings, but do not guarantee comprehensiveness; 3. The restore point occupies no more than 5% of the system disk space by default, and the old version will be automatically cleaned, and storage can be managed by adjusting the upper limit.

What is a firewall and how does it work What is a firewall and how does it work Jul 08, 2025 am 12:11 AM

A firewall is a network security system that monitors and controls network traffic through predefined rules to protect computers or networks from unauthorized access. Its core functions include: 1. Check the source, destination address, port and protocol of the data packet; 2. Determine whether to allow connections based on trust; 3. Block suspicious or malicious behavior; 4. Support different types such as packet filtering firewalls, status detection firewalls, application layer firewalls and next-generation firewalls; 5. Users can enable built-in firewalls through operating system settings, such as Windows Security Center or macOS system preferences; 6. The firewall should be used in combination with other security measures such as strong passwords and update software to enhance protection.

Can my wifi provider see my browsing history Can my wifi provider see my browsing history Jul 01, 2025 am 12:35 AM

Yes, WiFi providers can see some of your browsing information. Specifically: 1. The WiFi provider can see the domain name, Internet time period, device type and traffic size of the website you are visiting, but cannot view the specific content of the HTTPS website; 2. The home WiFi administrator can also view the connection records and some traffic content through the router background or parent control software; 3. Methods to protect privacy include using HTTPS websites, connecting to VPNs, enabling browser privacy mode, and avoiding sensitive operations on public WiFi; 4. The company or school network is usually more stringent, and may record logs, install a proxy server, or even force decrypt HTTPS traffic, so you should try to comply with regulations and avoid visiting irrelevant websites.

How to fix VIDEO_TDR_FAILURE (nvlddmkm.sys) How to fix VIDEO_TDR_FAILURE (nvlddmkm.sys) Jul 16, 2025 am 12:08 AM

When encountering the blue screen error VIDEO_TDR_FAILURE(nvlddmkm.sys), priority should be given to troubleshooting graphics card driver or hardware problems. 1. Update or rollback the graphics card driver: automatically search and update through the device manager, manually install or roll back to the old stable driver using NVIDIA official website tools; 2. Adjust the TDR mechanism: Modify the TdrDelay value in the registry to extend the system waiting time; 3. Check the graphics card hardware status: monitor the temperature, power supply, interface connection and memory module; 4. Check system interference factors: run sfc/scannow to repair system files, uninstall conflicting software, and try safe mode startup to confirm the root cause of the problem. In most cases, the driver problem is first handled. If it occurs repeatedly, it needs to be further deepened.