Changes

PXE Boot Server Configuration Using Linux

2,755 bytes added, 17:48, 5 July 2007
The following lines were added (+) and removed (-):
 install the packages netkit-inetd, tftpd-hpa, dhcp3-server, and lftp, so we run apt-get install netkit-inetd tftpd-hpa dhcp3-server lftp vi /etc/inetd.conf and add the following tftp          dgram  udp    wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpbootvi /etc/dhcp3/dhcpd.conf example snippet subnet 192.168.0.0 netmask 255.255.255.0 {        range 192.168.0.10 192.168.0.49;        filename "pxelinux.0";        option subnet-mask 255.255.255.0;        option broadcast-address 192.168.0.255;        option routers 192.168.0.1; }There is no binary TFTPD package for White Russian. But it can easily be packported from Kamikaze using OpenWrt's SDK.To backport the atftp (client and server) package from Kamikaze do: cd /tmp wget http://downloads.openwrt.org/whiterussian/newest/OpenWrt-SDK-Linux-i686-1.tar.bz2 bzcat OpenWrt-SDK-Linux-i686-1.tar.bz2 | tar -xf - cd OpenWrt-SDK-Linux-i686-1/package/ svn co https://svn.openwrt.org/openwrt/trunk/openwrt/package/atftp/ cd .. make atftp-clean && make atftp-compile ls -al bin/packages -rw-r--r--  1 openwrt-dev openwrt-dev 18249 2006-01-24 23:03 atftp_0.7-1_mipsel.ipk -rw-r--r--  1 openwrt-dev openwrt-dev 31819 2006-01-24 23:03 atftpd_0.7-1_mipsel.ipkYou might need to get libpcre ipkg install libpcreCREATE THIS FILE: /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/tftpd        server_args            = -s /var/lib/tftpboot        per_source              = 11        cps                            = 100 2        flags                  = IPv4 }ADD TO FILE: /etc/services tftp            69/tcp    # Trivial File Transfer tftp            69/udp    # Trivial File Transferadded an "a" in the line server                  = /usr/sbin/atftpd(as this is the name of the file located in /usr/sbin)created file service with : tftp    69/tcp tftp    69/udp tftp-mcast      1758/tcp tftp-mcast      1758/udpcreated folder /atftpboot (and put the file to be transmetted in this folder) and chmod 777 /atftpbootnote that atftp is client package and atftpd is serveruse atftp --daemon to make listening on porttested with TFTPD32 v3.01 (windows system) works fine
Bureaucrat, administrator
16,195
edits