Greg's Tech blog

PXE Server

Thursday 22 of April, 2004

We need three things:

  • DHCP server
  • TFTP server
  • NFS share

DHCP server

edit configure file:

option domain-name "linux.sun.com";
option domain-name-servers,;
option subnet-mask;

allow bootp;
allow booting;
option ip-forwarding false; # No IP forwarding
option mask-supplier false; # Don’t respond to ICMP Mask req
ddns-update-style = adhoc;
get-lease-hostnames on; # DNS lookup hostnames
use-host-decl-names on; # And supply them to clients

  1. WARNING: This is a default configuration — any system PXE booting will
  2. wipe out all existing data on the first hard disk and install
  3. RedHat Enterprise Linux AS

subnet netmask {
next-server; # name of your TFTP server
filename "/as-2.1/sun/pxelinux.bin"; # name of the boot-loader program
range; # dhcp clients IP range

- start dhcpd manually (added it to rc.local)

tftp server

  • create /var/tftp directory
  • Add files tp directory (pxelinux.bin)
  • startup using /usr/sbin/in.tftpd -c -l -v -s /var/tftp

NFS share

  • edit /etc/exports
  • add ' /var/tftp *(ro,sync) '
  • restart nfs 'rc.inet2 restart'