Changes

PXE Boot Server Configuration Using Linux

4,192 bytes added, 17:48, 5 July 2007
The following lines were added (+) and removed (-):
&nbsp;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; }PXE booting defined to dhcp server on openwrt.  dnsmasq.conf example: # filter what we send upstream domain-needed bogus-priv filterwin2k localise-queries # allow /etc/hosts and dhcp lookups via *.roadrunner.cx local=/roadrunner.cx/ domain=roadrunner.cx expand-hosts addn-hosts=/etc/hosts resolv-file=/tmp/resolv.conf # enable dhcp (start,end,netmask,leasetime) dhcp-authoritative dhcp-range=10.0.0.80,10.0.0.200,12h dhcp-leasefile=/tmp/dhcp.leases # use /etc/ethers for static hosts; same format as --dhcp-host # <hwaddr> <ipaddr> read-ethers # other useful options: # default route(s): dhcp-option=3,192.168.1.1,192.168.1.2 #    dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2 dhcp-option=1,255.255.255.0 dhcp-option=2,7200 dhcp-option=3,10.0.0.1 dhcp-option=5,10.0.0.1 dhcp-option=6,10.0.0.1 dhcp-option=7,10.0.0.30 dhcp-option=15,roadrunner.cx dhcp-option=17,10.0.0.30:/opt/ltsp-4.2/i386 dhcp-option=16,10.0.0.30 dhcp-option=42,10.0.0.1 dhcp-option=44,10.0.0.30 dhcp-option=48,10.0.0.30 dhcp-option=49,kde dhcp-option=69,10.0.0.30 dhcp-option=70,10.0.0.30 dhcp-option=72,10.0.0.30 dhcp-option=128,10.0.0.30 dhcp-vendorclass=pxe,PXEClient dhcp-vendorclass=eth,Etherboot dhcp-option=vendor:PXEClient,1,0.0.0.0 dhcp-boot=net:pxe,/2.6.17.8-ltsp-1/pxelinux.0,mainframe.roadrunner.cx,10.0.0.30 dhcp-boot=net:eth,/lts/vmlinuz-2.6.16.8-ltsp-1,mainframe.roadrunner.cx,10.0.0.30There 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,221
edits