# # tftpboot.Server-HOWTO.txt # ------------------------- # # # Original File # -------------- # http://Linux-Boot.net/Boot/Network/PXE/tftpboot.Server-Howto.txt # # # # more config files ( dhcpd.conf, pxeconfig.cfg/default, .. ) # # # http://Linux-Boot.net/Boot/Network/PXE/ # # # # 01-Mar-05 amo Date-of-Birth # 13-Mar-05 amo Added comments # # # NOTE: /tftpboot can be anywhere and named anything : # =================================================== # /var/tftpdboot # /home/pxeServer # # # Get the tftpboot network boot images # ------------------------------------- # redhat-9.0:/tftpboot # # mkdir -p /tftpboot/pxelinux.cfg # # # Get a Bootable Kernel # --------------------- # http://Linux-Boot.net/Boot/Network/PXE/Kernel # # # mount rh-9-cdrom /mnt/cdrom # # cp -dpar /mnt/cdrom/images/pxeboot /tftpboot # # umount /mnt/cdrom # cp -p /boot/vmlinuz-2.6.11 /tftpboot cp -p /boot/config-2.6.11 /tftpboot cp -p /boot/initrd-2.6.11.gz /tftpboot # # # # # # # http://Linux-Boot.net/Boot/Network/PXE/SysLinux/syslinux.For-PXE.txt # # ==================================================================== # # Copy the PXE boot file # cp -p syslinux-3.07/pxelinux.0 /tftpboot # # # # # # # http://Linux-Boot.net/Boot/Network/PXE/pxeconfig.cfg # # ==================================================== # # vi /tftpboot/pxelinux.cfg/default # - # - see the examples # - # # # # # # http://Linux-Boot.net/Boot/Network/DHCP # # ======================================= # # vi /etc/dhcpd.conf # - # - see the examples # - # # # # \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ # # # # Configure the tftp and bootp Services # # # # \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ # grep tftp /etc/services # --------------------- # tftp 69/tcp #Trivial File Transfer # tftp 69/udp #Trivial File Transfer # # # Turn on the network boot daemons: tftpd and bootpd # -------------------------------- vi /etc/inetd.conf # tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd -ls /tftpboot -u nobody # bootps dgram udp wait root /usr/sbin/bootpd bootpd -d 2 -f # # # # -l, -s /tftpboot -u nobody is optional # # -d 2 -f is optional # # # -s path is used to set a chroot # -------------------------------- # tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /home/tftpboot -r blksize # # vi /etc/hosts.allow # in.tftpd: w.x.y.z/255.255.255.0 # # bootp: w.x.y.z/255.255.255.0 # # mount: w.x.y.z/255.255.255.0 # # # Restart inetd # ------------- # /etc/rc.d/init.d/inetd restart # kill -HUP ` cat /var/run/inetd.pid ` # # # Debugging the tftp server and bootp server # =========================================== # # tcpdump port tftp # # # # # while tftp is attempting to get the file: # # # tftp-server# ps axuwf | egrep "ftp|inet" # - look for inetd # - look for in.tftpd # # Check for log messages # ---------------------- # /var/log/secure # /var/log/messages # /var/log/syslog # # # ==================== # Test the tftp Server # ==================== # cd /tmp # # # tftp tftp-server # > connect tftp-server # > help # > binary # > verbose # > status # > get /tftpboot//vmlinuz # > get initrd.img # # # # transfer timed out --->> TFTP server is not running # # -- inetd.conf, fix hosts.allow, hosts.deny, portmap, etc # > quit # # # # --------------- # To Verify bootp # --------------- # http://docs.hp.com/en/B2355-90110/ch06s08.html # # /etc/bootptab # bootpd -d4 -s # # # End of file