[K12OSN] dhcp.conf on a single ethernet card
DWatkins at frkl.wnyric.org
DWatkins at frkl.wnyric.org
Thu Jun 16 19:08:50 UTC 2005
I'm sending this demo dhcpd.conf file along as a help to someone
attempting to setup K12LTSP on their main network using only one ethernet
card. I also noted in helping a couple of other people with their
installations of K12LTSP with one ethernet card that eth0 is firewalled by
default and the tftpserver cannot send a kernel to the client without the
firewall being disabled or reconfigure to allow that traffic to occur.
You'll have to change the IP numbers and subnets to match your setup.
# Sample /etc/dhcpd.conf
# Tom's sample dhcpd.conf
ddns-update-style none;
default-lease-time 21600;
max-lease-time 21600;
allow booting;
allow bootp;
option subnet-mask 255.255.254.0;
option broadcast-address 168.169.0.255;
option routers 168.169.78.1;
option domain-name-servers 168.169.78.8, 168.169.78.9, 168.169.78.39;
option domain-name "ltsp";
option root-path "168.169.78.39:/opt/ltsp/i386";
option option-128 code 128 = string;
option option-129 code 129 = text;
option option-221 code 221 = text;
subnet 168.169.78.0 netmask 255.255.254.0 {
range dynamic-bootp 168.169.78.110 168.169.78.131;
range dynamic-bootp 168.169.78.133 168.169.78.139;
range dynamic-bootp 168.169.78.142 168.169.78.153;
range dynamic-bootp 168.169.78.155 168.169.78.253;
}
use-host-decl-names on;
option log-servers 168.169.78.39;
# trick from Peter Rundle
# newer Macs
if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
{
filename "yaboot";
option vendor-class-identifier "AAPLBSDPC";
}
# Intel PXE
elsif substring (option vendor-class-identifier, 0, 9) =
"PXEClient"
{
# NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/
filename "/lts/pxe/pxelinux.bin";
}
#default to an i386 BOOTP image
else
{
filename "/lts/vmlinuz.ltsp";
}
if substring (option vendor-class-identifier, 20, 3) = "ppc" {
option root-path "168.169.78.39:/opt/ltsp/ppc";
} else {
option root-path "168.169.78.39:/opt/ltsp/i386";
}
Don
"Do not go where the path may lead, go instead where there is no path and
leave a trail"--Ralph Waldo Emerson
Don Watkins, Technology Director
Franklinville Central School
Tel: 716-676-8004 Mobile: 716-474-5675
This message may contain confidential information.
It is intended for the use of the addressee only.
Unauthorized use of this e-mail may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20050616/4df6eb78/attachment.htm>
More information about the K12OSN
mailing list