Brent Hasty wrote on Mon, Oct 07, 2002 at 11:52:48PM -0700 :
> I am having difficulty getting tftp running.  It is not handing files out to 
> etherboot clients.
> xinetd is running, what is tftp's problem?

[root@fiji ~]# netstat -lun | grep :69
udp        0      0 0.0.0.0:69              0.0.0.0:*                           
[root@fiji ~]# cat /etc/xinetd.d/tftp 
# default: off
# description: The tftp server serves files using the trivial file
# transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware
#       printers, \
#       and to start the installation process for some operating
#       systems.
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot
}
[root@fiji ~]# vdir /var/lib/tftpboot
total 1
drwxr-xr-x    4 root     root          208 Oct  2 16:28 PXEClient
drwxr-xr-x    3 root     root           72 Sep 23 12:13 X86PC

If your server_args does not specify a path with the -s option, it will
be expecting to find it in /tftpboot/{ServiceName}.  All of the tftp
clients that I have (eepro100 cards) connect with the name PXEClient, so
inside of PXEClient are the files that it's looking for.  With the above
option, it will look in /var/lib/tftpboot/{ServiceName}.  

[root@fiji /var/lib/tftpboot]# tree
.
|-- PXEClient
|   |-- help.txt
|   |-- images
|   |   |-- 8.2
|   |   |   `-- network.img
|   |   |-- 9.0
|   |   |   `-- network.img
|   |   `-- cooker
|   |       `-- network.img
|   |-- memdisk
|   |-- messages
|   |-- pxelinux.0
|   `-- pxelinux.cfg
|       `-- default
`-- X86PC
    `-- linux
        |-- linux.0
        `-- nbplinux.0

The only config file I have there is "default" and it is pretty simple:

[root@fiji /var/lib/tftpboot]# cat PXEClient/pxelinux.cfg/default 
PROMPT 1
DEFAULT local
DISPLAY messages
TIMEOUT 150
label local
        LOCALBOOT 0

label cooker
        KERNEL memdisk
        APPEND initrd=images/cooker/network.img

label 9.0
        KERNEL memdisk
        APPEND initrd=images/9.0/network.img

label 8.2
        KERNEL memdisk
        APPEND initrd=images/8.2/network.img

F1 help.txt

If I have to tell you what help.txt is, you're in the wrong mailing list :)

I don't have anything that uses the X86PC ServiceName, so I can't
exactly say what it does.  Maybe Erwan has more input on that.

Blue skies...                   Todd
-- 
           MandrakeSoft USA   http://www.mandrakesoft.com
   Easy things should be easy, and hard things should be possible.
                                                --Larry Wall
   Cooker Version mandrake-release-9.0-0.3mdk Kernel 2.4.19-16mdk

Attachment: msg78499/pgp00000.pgp
Description: PGP signature

Reply via email to