Documentation we use to create our servers ... works everytime (even
translates to windows if you want to use m$ as your platform)
PXE boot Server
Monday, June 09, 2008
7:13 PM
Install required packages
sudo apt-get install openbsd-inetd tftpd-hpa dhcp3-server lftp
Start your tftpd server via inetd after adding the following line in
/etc/inetd.conf:
tftp dgram udp wait root /usr/sbin/in.tftpd
/usr/sbin/in.tftpd -s /var/lib/tftpboot
/etc/init.d/inetd start
Configure Tftp Server
sudo update-inetd --enable BOOT
mkdir /var/lib/tftpboot
Enable run as daemon for server by edit /etc/default/tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"
Verify inetd is listening on the right port (restart inetd service helps)
netstat -lu
udp 0 0 *:tftp *:*
Configure DHCP Server (you can use webmin)
cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_orig
cat /dev/null > /etc/dhcp3/dhcpd.conf
vi /etc/dhcp3/dhcpd.conf
Add the following (change ip's to match your setup)
option domain-name-servers 10.160.0.10, 10.160.0.102;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
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;
}
Then restart your DHCP server:
/etc/init.d/dhcp3-server restart
Download and put the netboot directory content at the root of the tftpd's
served /var/lib/tftpboot/ directory:
cd /var/lib/tftpboot/
lftp -c "open
http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/netboot/;
mirror"
On Wed, Dec 9, 2009 at 8:53 AM, Peter C. Ndikuwera <[email protected]> wrote:
> Please post your dhcpd conf
>
> Also, are you running tftpd from inetd? Can you confirm that it's running?
>
> "Happiness makes up in height what it lacks in length"
> -- Robert Frost
>
>
> 2009/12/9 stevie kabs <[email protected]>
>
> Hi,
>> I have been trying to set up a PXE server on Debian 5 but it shows me
>> tftp open timeout and stops there but it gets the ip from the DHCP..
>> Help please
>>
>> --
>> Stephen Kabali
>> Data center Administrator
>> Uganda Industrial Research Institute (UIRI)
>> [email protected] +256-782-706582
>> www.uiri.org
>> _______________________________________________
>> LUG mailing list
>> [email protected]
>> http://kym.net/mailman/listinfo/lug
>> %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
>>
>> The above comments and data are owned by whoever posted them (including
>> attachments if any). The List's Host is not responsible for them in any way.
>> ---------------------------------------
>>
>>
>
> _______________________________________________
> LUG mailing list
> [email protected]
> http://kym.net/mailman/listinfo/lug
> %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The List's Host is not responsible for them in any way.
> ---------------------------------------
>
>
>
--
Sanga M. Collins
Network Engineering
~~~~~~~~~~~~~~~~~~~~~~~
Google Voice: (954) 324-1365
E- fax: (435) 578 7411
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
The above comments and data are owned by whoever posted them (including
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------