|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
1 |
# Sample configuration file for LTSP dhcpd
|
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
2 |
# The goal of this provided dhcpd.conf is to boot as many different clients as possible without manual configuration.
|
3 |
# Some clients cannot be booted with this, and you will need to create your own custom dhcpd.conf.
|
|
4 |
# Some more complex network topologies will also need a custom dhcpd.conf.
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
5 |
#
|
6 |
||
7 |
default-lease-time 21600; |
|
8 |
max-lease-time 21600; |
|
9 |
ddns-update-style none; |
|
10 |
allow booting; |
|
11 |
allow bootp; |
|
12 |
||
13 |
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 |
14 |
option broadcast-address 172.31.100.255; |
15 |
option routers 172.31.100.254; |
|
16 |
option domain-name-servers 172.31.100.254; |
|
17 |
next-server 172.31.100.254; |
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
18 |
option domain-name "ltsp"; |
19 |
option option-128 code 128 = string; |
|
20 |
option option-129 code 129 = text; |
|
21 |
option option-221 code 221 = text; |
|
22 |
||
23 |
shared-network WORKSTATIONS { |
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
24 |
subnet 172.31.100.0 netmask 255.255.255.0 { |
25 |
range dynamic-bootp 172.31.100.100 172.31.100.253; |
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
26 |
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 |
27 |
option log-servers 172.31.100.254; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
28 |
|
29 |
# trick from Peter Rundle <peter.rundle@au.interpath.net> |
|
30 |
# newer PPC Macs |
|
31 |
if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC" |
|
32 |
{
|
|
|
1010
by Warren Togami
Fedora: yaboot cannot be in a directory due to OFW bugs =( |
33 |
filename "yaboot"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
34 |
option vendor-class-identifier "AAPLBSDPC"; |
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
35 |
option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
36 |
}
|
37 |
# really old ppc iMacs |
|
38 |
elsif substring (option option-221, 0, 5) = "Apple" |
|
39 |
{
|
|
|
1010
by Warren Togami
Fedora: yaboot cannot be in a directory due to OFW bugs =( |
40 |
filename "yaboot"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
41 |
option vendor-class-identifier "AAPLBSDPC"; |
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
42 |
option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
43 |
}
|
|
796
by Warren Togami
Fedora: Generate ELF image automatically for Coreboot or Etherboot-5.4 |
44 |
# Etherboot ELF (only 5.4), should work with Coreboot |
|
576
by Warren Togami
Fedora: make dhcpd.conf properly detect PXE capable Etherboot |
45 |
elsif substring (option vendor-class-identifier, 0, 13) = "Etherboot-5.4" |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
46 |
{
|
|
796
by Warren Togami
Fedora: Generate ELF image automatically for Coreboot or Etherboot-5.4 |
47 |
filename "/ltsp/i386/elf.ltsp"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
48 |
}
|
|
825
by Warren Togami
Fedora: Standardize on wraplinux for NBI, and mkelfimage for ELF images. |
49 |
# Etherboot NBI (older clients) |
50 |
elsif substring (option vendor-class-identifier, 0, 9) = "Etherboot" |
|
51 |
{
|
|
52 |
filename "/ltsp/i386/wraplinux-nbi.ltsp"; |
|
53 |
}
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
54 |
# PXE |
55 |
elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient" |
|
56 |
{
|
|
|
549
by Warren Togami
Fedora: fix default dhcpd.conf to s/pxe/i386/ directories |
57 |
# NOTE: kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/ |
58 |
filename "/ltsp/i386/pxelinux.0"; |
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
59 |
}
|
|
827
by Warren Togami
Fedora: If not Etherboot or PXELinux, then it is likely BOOTP. Try the NBI image. |
60 |
# if all else fails (likely BOOTP), default to an NBI image |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
61 |
else
|
62 |
{
|
|
|
827
by Warren Togami
Fedora: If not Etherboot or PXELinux, then it is likely BOOTP. Try the NBI image. |
63 |
filename "/ltsp/i386/wraplinux-nbi.ltsp"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
64 |
}
|
65 |
||
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
66 |
# PPC Apple MAC prefixes https://fedoraproject.org/wiki/WarrenTogami/AppleMACAddresses |
67 |
# initrd did dhcp again with vendor-client-identifier "nash" so we need another way to set root-path |
|
|
1027
by Warren Togami
Fedora: Hopefully a complete list of PPC MAC addresses |
68 |
# This is most likely an incomplete list. You may need to add your own if you have a PPC not covered. |
|
1025
by Warren Togami
Fedora: add another PPC MAC prefix |
69 |
# 00:03:93 |
|
1027
by Warren Togami
Fedora: Hopefully a complete list of PPC MAC addresses |
70 |
# 00:05:02 |
71 |
# 00:0A:27 |
|
|
1025
by Warren Togami
Fedora: add another PPC MAC prefix |
72 |
# 00:0A:95 |
73 |
# 00:0D:93 |
|
74 |
# 00:11:24 |
|
75 |
# 00:14:51 |
|
76 |
# 00:30:65 |
|
|
1027
by Warren Togami
Fedora: Hopefully a complete list of PPC MAC addresses |
77 |
# 00:50:E4 |
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
78 |
if binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-3-93" or |
|
1027
by Warren Togami
Fedora: Hopefully a complete list of PPC MAC addresses |
79 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-5-2" or |
80 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-27" or |
|
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
81 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-95" or |
82 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-d-93" or |
|
|
1025
by Warren Togami
Fedora: add another PPC MAC prefix |
83 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-11-24" or |
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
84 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-14-51" or |
|
1027
by Warren Togami
Fedora: Hopefully a complete list of PPC MAC addresses |
85 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-30-65" or |
86 |
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-50-E4" |
|
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
87 |
{
|
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
88 |
option root-path "172.31.100.254:/opt/ltsp/ppc"; |
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
89 |
#option root-path "nbd:172.31.100.254:2001:squashfs:ro"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
90 |
} else { |
|
617
by Warren Togami
Fedora: move ifcfg-ltspbr0 to ltsp-server, it is now the default LTSP network for K12Linux |
91 |
option root-path "172.31.100.254:/opt/ltsp/i386"; |
|
838
by Warren Togami
Fedora: Add example nbd root-path |
92 |
#option root-path "nbd:172.31.100.254:2000:squashfs:ro"; |
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
93 |
}
|
94 |
}
|
|
95 |
}
|
|
96 |
||
97 |
## example configurations for specifying specific kernels to specific clients
|
|
|
1024
by Warren Togami
Fedora: Autodetect PPC Mac's and give them the ppc root-path. This list of PPC MAC addresses is likely incomplete. |
98 |
## These examples below are VERY OLD, uncertain if they work
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
99 |
#group {
|
100 |
# 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 |
101 |
# option log-servers 172.31.100.254;
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
102 |
#
|
103 |
# host ws001 {
|
|
104 |
# 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 |
105 |
# fixed-address 172.31.100.1;
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
106 |
# filename "/ltsp/vmlinuz.ltsp";
|
107 |
# option option-128 e4:45:74:68:00:00;
|
|
108 |
# option option-129 "NIC=3c509";
|
|
109 |
# }
|
|
110 |
# host ws002 {
|
|
111 |
# 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 |
112 |
# fixed-address 172.31.100.2;
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
113 |
# filename "/ltsp/vmlinuz.ltsp";
|
114 |
# option option-128 e4:45:74:68:00:00;
|
|
115 |
# option option-129 "NIC=ne";
|
|
116 |
# }
|
|
117 |
# host ws003 {
|
|
118 |
# 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 |
119 |
# fixed-address 172.31.100.3;
|
|
549
by Warren Togami
Fedora: fix default dhcpd.conf to s/pxe/i386/ directories |
120 |
# # kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/
|
121 |
# filename "/ltsp/i386/pxelinux.0";
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
122 |
# }
|
123 |
#
|
|
124 |
# Apple Specific Settings
|
|
125 |
# host ws007 {
|
|
126 |
# 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 |
127 |
# fixed-address 172.31.100.4;
|
128 |
# option root-path "172.31.100.254:/opt/ltsp/ppc";
|
|
|
505
by Vagrant Cascadian
merge example k12linux's dhcpd.conf |
129 |
# filename "yaboot";
|
130 |
# option vendor-class-identifier "AAPLBSDPC";
|
|
131 |
# }
|
|
132 |
#}
|