TFTP Server

本文介绍了TFTP服务器的作用及安装方法,详细解释了如何通过Xinetd进行配置,包括禁用、用户设置、服务器路径及多种参数选项,如块大小、超时设置等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Chapter 5. TFTP Server

5.1. Why using a TFTP server

It provides config files, bootstraps for PXE client.

5.2. How to install a TFTP server ?

In Mandrake Linux 8.1 the package is : tftp-server-0.17-7mdk. By default on Mandrake Linux 8.x, tftp server is launched from the xinetd server :

service xinetd start

The TFTP server sources can be downloaded here [6]

5.3. Xinetd Options

5.3.1. Disable

If you want to enable the server, the disable parameter must be set to no.

5.3.2. User

Specify the user that launch the tftpd server. For security reasons you can set this parameter to nobody.

5.3.3. Server

The path to the daemon, tftpd or in.tftpd.

5.3.4. Server_args

5.3.4.1. Block Size option

By default the tftp server negotiates with the client on the block size. Some tftp client are not able to handle the negotiation process. In this case you must tell the tftp server not to negotiate the block size using the -r blksize option.

5.3.4.2. Size ahead of time option

By default the tftp server negotiates with the client on the size ahead of time. Some tftp client are not able to handle the negotiation process. You can also prevent the tftp server to start the negotation on the timeout using the -r blksize option

5.3.4.3. Timeout option

By default the tftp server negotiates with the client on the timeout. Some tftp clients are not able to handle the negotiation process. You can disable the negotation on the size ahead of time using the -r tsize option.

5.3.4.4. Chrooting option

The -s /tftboot specify that our tftp server is chrooted to the tftpboot directory. So be careful when using the filename option in the file dhcpd.conf. It must be set to :

filename "/PXEClient/pxelinux.0"

and not to :

filename "/tftpboot/PXEClient/pxelinux.0"

5.4. Sample tftpd file

 

	service tftp
{
        disable                 = no
        socket_type             = dgram
        protocol                = udp
        instances               = 2
        wait                    = yes
        user                    = nobody
        server                  = /usr/sbin/in.tftpd
#       server_args             = -r blksize -r tsize -r timeout -v -v -s /tftpboot
        server_args             = -v -v -s /tftpboot
}

转载于:https://www.cnblogs.com/RichardLee/archive/2012/03/13/2394313.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值