Configuring the Linux Server

Use BOOTP, TFTP, and NFS services on a Linux server (RH6.0). Used a 3com 3C905-TX network card, an3C905b, NE2000ISA RTL8019 card with etherboot software for each card. The remote computer gets its boot address then does the TFTP file transfer of the kernel file. After this, the kernel is decompressed and run. It must have support for the network card on the remote computer. At this point NFS is used to mount the remote filesystem.

BOOTP

To install bootp:

  1. Get bootpd-2.4.tar.gz and put it in a appropriate directory such as "/usr/local".
  2. Type: "tar xvzf bootbd-2.4.tar.gz" which will make a directory "bootpd-2.4" full of files.
  3. Read the README and README-linux files then type "make install".
  4. Copy the executables to the "/usr/sbin" directory.
  5. Copy the man pages to their appropriate directories by typing "cp *.8 /usr/man/man8" and "cp *.5 /usr/man/man5".
  6. Read the manual on bootp, and bootptab.
  7. You can invoke bootp services in redhat linux as an independent daemon by doing (choice A) below or from the internet super daemon by doing (choice B). Choice A:
    1. Using linuxconf set the bootparamd service to active.
    2. Modify the "bootparamd" file in the directory "/etc/rc.d/init.d" so that everywhere "rpc.bootparamd" occurs, you substitute "bootpd –d".
    3. Reboot your system or type "/etc/rc.d/init.d/bootparamd restart".

    Choice B:

    1. With bootparamd services off, add the following line in the file "/etc/inetd.conf": bootps dgram udp wait root /usr/sbin/tcpd bootpd -d
    2. Type "killall –HUP inetd".
  8. Make the file "/etc/bootptab" as shown below:
    global.prof:\
    	:sm=255.255.0.0:\
    	:ds=10.1.0.100:\
    	:gw=10.1.0.1:\
    	:ht=ethernet:\
    	:bf=dosimage:
    dos1:td=/tftpboot:hd=/bootfiles:tc=global.prof:ha=006097baa5a2:ip=10.1.0.101
    
    This makes the name of the machine "dos1" with an IP address of "10.1.0.101" and the bootfile to load in "/tftpboot/bootfiles/dosimage".
  9. Add the machine's name and address to the following files:
    1. /etc/hosts
    2. /var/named/db.mycompany.com.hosts
    3. /var/named/db.10.1.hosts

FTP

To install tftp:

  1. Add the following line in the file "/etc/inetd.conf":

    tftp dgram udp wait root /usr/sbin/tcpd in.tftpd /tftpboot

  2. Restart inetd with "killall -HUP inetd".

NFS

To install NFS:

  1. Add the below line to the file "etc/exports":

    /tftpboot/filesystems/dos1 dos1(rw)

    The format of the file is:

    directoryname hostname(options)

    The hostname can be the IP address followed by the netmask.

  2. Type "exportfs -a"

See the NFS section in "The CTDP Linux User's Guide" for more information on NFS.

Linux Remote Booting Contents Page