Loading...
 

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 172.16.13.2, 172.16.13.6;
option subnet-mask 255.255.0.0;

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 172.16.13.0 netmask 255.255.0.0 {
next-server 172.16.13.6; # name of your TFTP server
filename "/as-2.1/sun/pxelinux.bin"; # name of the boot-loader program
range 172.16.13.100 172.16.13.200; # 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'