View previous topic :: View next topic |
Author |
Message |
madchaz l33t
Joined: 01 Jul 2003 Posts: 995 Location: Quebec, Canada
|
Posted: Sun Aug 10, 2003 12:48 pm Post subject: Problems geting DHCP running |
|
|
I'm seting up a terminal server on my main server. I am going along well but I can't seam to get DHCP to start.
I followed the instructions in the gentoo ltsp doc, even tried coping there dhcp.conf exemple but it won't work.
here is what I get
Code: |
tenchi root # /etc/init.d/dhcp start
* Starting dhcpd...
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
/etc/dhcp/dhcpd.conf line 0: expecting a parameter or declaration
^
/etc/dhcp/dhcpd.conf line 5: expecting a parameter or declaration
^
/etc/dhcp/dhcpd.conf line 9: expecting a parameter or declaration
^
/etc/dhcp/dhcpd.conf line 17: expecting a parameter or declaration
^
/etc/dhcp/dhcpd.conf line 21: expecting a parameter or declaration
^
Configuration file errors encountered -- exiting
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
[ !! ]
|
here is my current dhcp.conf file
Code: |
// Some general options
default-lease-time 21600;
max-lease-time 21600;
use-host-decl-names on;
ddns-update-style ad-hoc;
// Bootp options
allow booting;
allow bootp;
// Network Options
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option log-servers 192.168.0.2;
option domain-name "home.biz";
// LTSP Path Options
option root-path "192.168.0.2:/opt/ltsp/i386";
filename "/lts/vmlinuz-2.4.19-ltsp-1";
// If your workstations have ISA NICs uncomment the following
// lines and alter the driver and IO
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#option option-128 e4:45:74:68:00:00;
#option option-129 "NIC=ne IO=0x300";
shared-network WORKSTATIONS {
subnet 192.168.0.0 netmask 255.255.255.0 {
// Distribute dynamic IPs to the workstations
range dynamic-bootp 192.168.0.125 192.168.0.150;
// Workstation specific configuration for PXE booting
#host ws001 {
# hardware ethernet 00:E0:06:E8:00:84;
# fixed-address 192.168.0.1;
#}
}
}
|
my gateway/router/dns server is 192.168.0.1 and the TS is 192.168.0.2
second time I try and setup dhcp and fail. Hoping I can this time _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sun Aug 10, 2003 1:20 pm Post subject: |
|
|
replace the // entries with a #
cheers
SteveB
Code: | # Some general options
default-lease-time 21600;
max-lease-time 21600;
use-host-decl-names on;
ddns-update-style ad-hoc;
# Bootp options
allow booting;
allow bootp;
# Network Options
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option log-servers 192.168.0.2;
option domain-name "home.biz";
# LTSP Path Options
option root-path "192.168.0.2:/opt/ltsp/i386";
filename "/lts/vmlinuz-2.4.19-ltsp-1";
# If your workstations have ISA NICs uncomment the following
# lines and alter the driver and IO
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#option option-128 e4:45:74:68:00:00;
#option option-129 "NIC=ne IO=0x300";
shared-network WORKSTATIONS {
subnet 192.168.0.0 netmask 255.255.255.0 {
# Distribute dynamic IPs to the workstations
range dynamic-bootp 192.168.0.125 192.168.0.150;
# Workstation specific configuration for PXE booting
#host ws001 {
# hardware ethernet 00:E0:06:E8:00:84;
# fixed-address 192.168.0.1;
#}
}
} |
|
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 995 Location: Quebec, Canada
|
Posted: Sun Aug 10, 2003 1:29 pm Post subject: |
|
|
D'OH!
that was simple
thanks.
well, now I just need to recompile the kernel with the right options. A well, live and learn
thanks for your help _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Aug 11, 2003 5:38 pm Post subject: |
|
|
madchaz wrote: | A well, live and learn |
that's what WE ALL are doing
cheers
SteveB |
|
Back to top |
|
|
|