Posted on Leave a comment

My Openwrt “LinuxRules!” Dnsmasq setup for LTSP

Here it is ,my dnsmasq.conf :

# filter what we send upstream
domain-needed
bogus-priv
filterwin2k
localise-queries

# allow /etc/hosts and dhcp lookups via *.lan
local=/lan/
domain=lan
expand-hosts
no-negcache
resolv-file=/tmp/resolv.conf.auto

# enable dhcp (start,end,netmask,leasetime)
dhcp-authoritative
#dhcp-range=192.168.1.100,192.168.1.250,255.255.255.0,12h
dhcp-leasefile=/tmp/dhcp.leases

# use /etc/ethers for static hosts; same format as –dhcp-host
#
read-ethers

# other useful options:
# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2
# dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2

#My PXE setup 12-30-06
#dhcp-vendorclass=pxe,PXEClient

dhcp-option=17,”192.168.1.115:/opt/debian”
dhcp-option=128,e4:45:74:68:00:00
#dhcp-boot=/opt/debian/vmlinux,debian,192.168.1.115
dhcp-boot=/opt/ltsp/i386/vmlinux,debian,192.168.1.115
#dhcp-boot=/opt/linux/vmlinux,debian,192.168.1.115
dhcp-option=211,nfs
##
#new option from http://wiki.ltsp.org/twiki/bin/view/Ltsp/DHCP#dnsmasq
#
#dhcp-option=17,”192.168.1.115:/opt/ltsp/i386/”
#dhcp-vendorclass=pxe,PXEClient
#dhcp-boot=net:pxe,/var/lib/tftpboot/ltsp/i386/pxelinux.0,tux,192.168.1.115

The ones in red are the most important ones coz that will allow you to boot your thinclient via dhcp and nfs.