Great Devil Singh kirjoitti 2014-09-04 23:39:
> 
> Seems my DHCP is not configured properly. I am using eth0 for DHCP
> server. Can you post your /etc/network/interfaces file?

When there are problems with TFTP be sure that there is no other DHCP 
server in your LAN if you are using Debian LTSP. If you are using Debian 
LTSP-PNP you need an DHCP server in your LAN.

------

1. Here for Debian AMD64 LTSP (with NFS).

a. root@debian-ltsp:~# cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
         address 192.168.0.105
         netmask 255.255.255.0
         network 192.168.0.0
         broadcast 192.168.0.255
         gateway 192.168.0.1

b. root@debian-ltsp:~# cat /etc/ltsp/dhcpd.conf

#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
     range 192.168.0.200 192.168.0.215;
     option domain-name "debian-ltsp";
     option domain-name-servers 192.168.0.1;
     option broadcast-address 192.168.0.255;
     option routers 192.168.0.1;
     next-server 192.168.0.105;
#    get-lease-hostnames true;
     option subnet-mask 255.255.255.0;
     option root-path "/opt/ltsp/i386";
     if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
         filename "/ltsp/i386/pxelinux.0";
     } else {
         filename "/ltsp/i386/nbi.img";
     }
}

2. Here for Debian i386 LTSP-PNP

a. root@debian-ltsp-pnp:~# cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
         address 192.168.0.105
         netmask 255.255.255.0
         network 192.168.0.0
         broadcast 192.168.0.255
         gateway 192.168.0.1

b. root@debian-ltsp-pnp:~# cat /etc/dnsmasq.d/ltsp-server-dnsmasq.conf

# Configures dnsmasq for PXE client booting.
# All the files in /etc/dnsmasq.d/ override the main dnsmasq 
configuration in
# /etc/dnsmasq.conf.
# You may modify this file to suit your needs, or create new ones in 
dnsmasq.d/.

# Log lots of extra information about DHCP transactions.
#log-dhcp

# IP ranges to hand out.
#dhcp-range=192.168.67.20,192.168.67.250,8h

# If another DHCP server is present on the network, you may use a proxy 
range
# instead. This makes dnsmasq provide boot information but not IP 
leases.
# (needs dnsmasq 2.48+)
dhcp-range=192.168.0.0,proxy

# The rootpath option is used by both NFS and NBD.
dhcp-option=17,/opt/ltsp/i386

# Define common netboot types.
dhcp-vendorclass=etherboot,Etherboot
dhcp-vendorclass=pxe,PXEClient
dhcp-vendorclass=ltsp,"Linux ipconfig"

# Set the boot filename depending on the client vendor identifier.
# The boot filename is relative to tftp-root.
dhcp-boot=net:pxe,/ltsp/i386/pxelinux.0
dhcp-boot=net:etherboot,/ltsp/i386/nbi.img
dhcp-boot=net:ltsp,/ltsp/i386/lts.conf

# Kill multicast.
dhcp-option=vendor:pxe,6,2b

# Disable re-use of the DHCP servername and filename fields as extra
# option space. That's to avoid confusing some old or broken DHCP 
clients.
dhcp-no-override

# We don't want a PXE menu since we're using a graphical PXELinux menu.
#pxe-prompt="Press F8 for boot menu", 3

# The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
# Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
pxe-service=X86PC, "Boot from network", /ltsp/i386/pxelinux

# A boot service type of 0 is special, and will abort the
# net boot procedure and continue booting from local media.
#pxe-service=X86PC, "Boot from local hard disk", 0

# Comment the following to disable the TFTP server functionality of 
dnsmasq.
enable-tftp

# The TFTP directory. Sometimes /srv/tftp is used instead.
tftp-root=/var/lib/tftpboot/

# Disable the DNS server functionality of dnsmasq by setting port=0
port=0

# Don't listen on lo, to prevent conflicts with Ubuntu's local resolver 
hack (LP: #959037).
#except-interface=lo
#bind-interfaces

c. root@debian-ltsp-pnp:~# cat 
/var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default

# This file is regenerated when update-kernels runs.
# Do not edit, see /etc/ltsp/update-kernels.conf instead.

default ltsp-NBD
ontimeout ltsp-NBD

# This file is regenerated when update-kernels runs.
# Do not edit, see /etc/ltsp/update-kernels.conf instead.

label ltsp-NBD
menu label LTSP, using NBD
kernel vmlinuz-3.2.0-4-486
append ro initrd=initrd.img-3.2.0-4-486 init=/sbin/init-ltsp quiet 
root=/dev/nbd0
ipappend 3

# This file is regenerated when update-kernels runs.
# Do not edit, see /etc/ltsp/update-kernels.conf instead.

menu begin ltsp-versions-NBD
menu label Other LTSP boot options using NBD

label ltsp-NBD-3.2.0-4-486
menu label LTSP, using NBD, with Linux 3.2.0-4-486
kernel vmlinuz-3.2.0-4-486
append ro initrd=initrd.img-3.2.0-4-486 init=/sbin/init-ltsp quiet 
root=/dev/nbd0
ipappend 3

menu end

------

Best Regards Asmo Koskinen.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to