|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
1 |
# Sample configuration file for LTSP dhcpd
|
2 |
#
|
|
3 |
||
4 |
default-lease-time 21600; |
|
5 |
max-lease-time 21600; |
|
6 |
ddns-update-style none; |
|
7 |
allow booting; |
|
8 |
allow bootp; |
|
9 |
||
10 |
option subnet-mask 255.255.255.0; |
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
11 |
option broadcast-address 172.31.100.255; |
12 |
option routers 172.31.100.254; |
|
13 |
option domain-name-servers 172.31.100.254; |
|
14 |
next-server 172.31.100.254; |
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
15 |
option domain-name "ltsp"; |
16 |
option option-128 code 128 = string; |
|
17 |
option option-129 code 129 = text; |
|
18 |
option option-221 code 221 = text; |
|
19 |
||
20 |
shared-network WORKSTATIONS { |
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
21 |
subnet 172.31.100.0 netmask 255.255.255.0 { |
22 |
range dynamic-bootp 172.31.100.100 172.31.100.253; |
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
23 |
use-host-decl-names on; |
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
24 |
option log-servers 172.31.100.254; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
25 |
|
26 |
# trick from Peter Rundle <peter.rundle@au.interpath.net> |
|
27 |
# newer PPC Macs |
|
28 |
if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC" |
|
29 |
{
|
|
|
1005
by Warren Togami
Fedora: Theoretically this is what we need to fully configure netboot. |
30 |
filename "/ltsp/ppc/yaboot"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
31 |
option vendor-class-identifier "AAPLBSDPC"; |
32 |
}
|
|
33 |
# really old ppc iMacs |
|
34 |
elsif substring (option option-221, 0, 5) = "Apple" |
|
35 |
{
|
|
|
1005
by Warren Togami
Fedora: Theoretically this is what we need to fully configure netboot. |
36 |
filename "/ltsp/ppc/yaboot"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
37 |
option vendor-class-identifier "AAPLBSDPC"; |
38 |
}
|
|
|
796
by Warren Togami
Fedora: Generate ELF image automatically for Coreboot or Etherboot-5.4 |
39 |
# Etherboot ELF (only 5.4), should work with Coreboot |
|
576
by Warren Togami
Fedora: make dhcpd.conf properly detect PXE capable Etherboot |
40 |
elsif substring (option vendor-class-identifier, 0, 13) = "Etherboot-5.4" |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
41 |
{
|
|
796
by Warren Togami
Fedora: Generate ELF image automatically for Coreboot or Etherboot-5.4 |
42 |
filename "/ltsp/i386/elf.ltsp"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
43 |
}
|
|
825
by Warren Togami
Fedora: Standardize on wraplinux for NBI, and mkelfimage for ELF images. |
44 |
# Etherboot NBI (older clients) |
45 |
elsif substring (option vendor-class-identifier, 0, 9) = "Etherboot" |
|
46 |
{
|
|
47 |
filename "/ltsp/i386/wraplinux-nbi.ltsp"; |
|
48 |
}
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
49 |
# PXE |
50 |
elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient" |
|
51 |
{
|
|
|
549
by Warren Togami
Fedora: fix default dhcpd.conf to s/pxe/i386/ directories |
52 |
# NOTE: kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/ |
53 |
filename "/ltsp/i386/pxelinux.0"; |
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
54 |
}
|
|
827
by Warren Togami
Fedora: If not Etherboot or PXELinux, then it is likely BOOTP. Try the NBI image. |
55 |
# if all else fails (likely BOOTP), default to an NBI image |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
56 |
else
|
57 |
{
|
|
|
827
by Warren Togami
Fedora: If not Etherboot or PXELinux, then it is likely BOOTP. Try the NBI image. |
58 |
filename "/ltsp/i386/wraplinux-nbi.ltsp"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
59 |
}
|
60 |
||
61 |
if substring (option vendor-class-identifier, 20, 3) = "ppc" { |
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
62 |
option root-path "172.31.100.254:/opt/ltsp/ppc"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
63 |
} else { |
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
64 |
option root-path "172.31.100.254:/opt/ltsp/i386"; |
|
838
by Warren Togami
Fedora: Add example nbd root-path |
65 |
#option root-path "nbd:172.31.100.254:2000:squashfs:ro"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
66 |
}
|
67 |
}
|
|
68 |
}
|
|
69 |
||
70 |
## example configurations for specifying specific kernels to specific clients
|
|
71 |
#group {
|
|
72 |
# use-host-decl-names on;
|
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
73 |
# option log-servers 172.31.100.254;
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
74 |
#
|
75 |
# host ws001 {
|
|
76 |
# hardware ethernet 00:E0:06:E8:00:84;
|
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
77 |
# fixed-address 172.31.100.1;
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
78 |
# filename "/ltsp/vmlinuz.ltsp";
|
79 |
# option option-128 e4:45:74:68:00:00;
|
|
80 |
# option option-129 "NIC=3c509";
|
|
81 |
# }
|
|
82 |
# host ws002 {
|
|
83 |
# hardware ethernet 00:D0:09:30:6A:1C;
|
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
84 |
# fixed-address 172.31.100.2;
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
85 |
# filename "/ltsp/vmlinuz.ltsp";
|
86 |
# option option-128 e4:45:74:68:00:00;
|
|
87 |
# option option-129 "NIC=ne";
|
|
88 |
# }
|
|
89 |
# host ws003 {
|
|
90 |
# hardware ethernet 00:D0:09:30:28:B2;
|
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
91 |
# fixed-address 172.31.100.3;
|
|
549
by Warren Togami
Fedora: fix default dhcpd.conf to s/pxe/i386/ directories |
92 |
# # kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/
|
93 |
# filename "/ltsp/i386/pxelinux.0";
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
94 |
# }
|
95 |
#
|
|
96 |
# Apple Specific Settings
|
|
97 |
# host ws007 {
|
|
98 |
# hardware ethernet 00:30:65:69:23:60;
|
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
99 |
# fixed-address 172.31.100.4;
|
100 |
# option root-path "172.31.100.254:/opt/ltsp/ppc";
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
101 |
# filename "yaboot";
|
102 |
# option vendor-class-identifier "AAPLBSDPC";
|
|
103 |
# }
|
|
104 |
#}
|