Advanced DHCP Config
Mixed Environments
If you have a mixed environment, with
PXE and
Etherboot clients, it can get tedious to gather a MAC address for each client, and make an entry to
dhcpd.conf to use one of these methods.
The following shows how to configure your
DHCP server to choose the correct config based on the reported vendor class ID. Be sure to change IP addresses and paths to match your setup.
Example dhcpd.conf file
# dhcpd.conf
#
option domain-name "ltsp";
option domain-name-servers server.ltsp;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option root-path "192.168.0.254:/opt/ltsp/i386";
default-lease-time 19200;
max-lease-time 28800;
ddns-update-style ad-hoc;
class "PXE" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
vendor-option-space PXE;
filename = "/lts/2.4.26-ltsp-1/pxelinux.0";
}
class "Etherboot" {
match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
filename = "/lts/vmlinuz-2.4.26-ltsp-1";
}
# LTSP
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.253;
}
# If you want a pseudo-static IP
host switch {
hardware ethernet 00:90:3A:19:CA:4E;
fixed-address 192.168.0.1;
}
--
SteveSwitzer - 07 Dec 2004