#
# Debian Edu configuration masterfile
#
# Contents of this file should be in
#
# /etc/dhcp3/dhcpd.conf
#
#
# DHCP configuration for Debian Edu server
#
# $Id: dhcpd-debian-edu.conf 34207 2007-06-04 15:32:49Z pere $
# New option necessary for dhcp3
ddns-update-style none;
#WPAD autoconfiguration
option wpad-url code 252 = text;
authoritative;
shared-network INTERNAL {
default-lease-time 1800; #30 m
max-lease-time 3600; #1 h
option subnet-mask 255.255.254.0;
option broadcast-address 10.0.3.255;
option routers gateway;
option domain-name-servers tjener;
option domain-name "intern";
option ntp-servers ntp;
option wpad-url "http://10.0.2.2/wpad.dat";
# Log to the main server
option log-servers tjener;
# If you use window clients, comment out the following lines.
# Samba wins support has to be turned on (wins support = yes)
#
# # WINS server
option netbios-name-servers tjener;
option netbios-node-type 8;
#Automatic assigning addresses to workstations
#There is room for approxmatly 400 workstations.
subnet 10.0.2.0 netmask 255.255.254.0 {
range 10.0.2.100 10.0.3.242;
}
# Group defines thinclientservers
# Add the hardware address to the thinclientserver here
# To add an other thinclientserver, use "host ltspserver00" as an example
# fixed address area for thin client servers is 10.0.2.10 to 10.0.2.29
group {
host ltspserver00 {
hardware ethernet 00:0E:2E:AB:84:E1;
fixed-address 10.0.2.2;
}
host ltspserver01 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltspserver01;
}
# 20 printers are defined as printer00 to printer19 on 10.0.2.30-49
# Provide a static address using dhcp by adding their MAC addresses here
host printer00 {
hardware ethernet 00:00:00:00:00:00;
fixed-address printer00;
}
host printer01 {
hardware ethernet 00:00:00:00:00:00;
fixed-address printer01;
}
host printer02 {
hardware ethernet 00:00:00:00:00:00;
fixed-address printer02;
}
host printer03 {
hardware ethernet 00:00:00:00:00:00;
fixed-address printer03;
}
# 50 workstations are defined as static00 to static49 on 10.0.2.50-99
# Provide a static address using dhcp by adding their MAC addresses here
host static00 {
hardware ethernet 00:00:00:00:00:00;
fixed-address static00;
}
host static01 {
hardware ethernet 00:00:00:00:00:00;
fixed-address static01;
}
host static02 {
hardware ethernet 00:00:00:00:00:00;
fixed-address static02;
}
host static03 {
hardware ethernet 00:00:00:00:00:00;
fixed-address static03;
}
}
}
shared-network THINCLIENTS {
default-lease-time 432000; # 5 d
max-lease-time 432000; # 5 d
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers ltspserver;
option domain-name-servers tjener;
option domain-name "intern";
option root-path "/opt/ltsp/i386";
option ntp-servers ntp;
# Log to the LTSP server, and let it forward the messages.
option log-servers ltspserver;
# filename "/ltsp/i386/pxelinux.0";
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0;
subnet 192.168.0.0 netmask 255.255.255.0 {
# At least some thin clients will work out of the box, appearing as
# ltsp200 to ltsp253.
# We still recommend defining fixed mac adress to ip adress mappings,
# cf. examples and explanations below.
range 192.168.0.200 192.168.0.253 ;
# pxelinux in etch is very slow without this setting.
next-server 192.168.0.254;
}
group {
next-server 192.168.0.254;
use-host-decl-names on;
option log-servers ltspserver ;
##################################################################################
#
# We recommend defining fixed mac adress (a.k.a. hardware ethernet adress) to
# ip adress mappings.
#
# Entries for actual use (ltsp010 to ltsp019) below:
#
# NOTE: After editing entries below, dhcpd MUST BE RESTARTED by the below
# commands and THE THIN CLIENT IN QUESTION BE REBOOTED for changes
# to take effect:
#
# /etc/init.d/dhcp3-server stop; /etc/init.d/dhcp3-server start
#
#
host darkstar {
hardware ethernet 00:02:3F:BD:CD:8E;
fixed-address 10.0.2.200;
filename "/ltsp/i386/pxelinux.0";
}
host ltsp011 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp011;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp012 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp012;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp013 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp013;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp014 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp014;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp015 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp015;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp016 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp016;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp017 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp017;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp018 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp018;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
host ltsp019 {
hardware ethernet 00:00:00:00:00:00;
fixed-address ltsp019;
filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
}
}
}