View previous topic :: View next topic |
Author |
Message |
popcan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Nov 2004 Posts: 33 Location: bath, ny
|
Posted: Wed Dec 27, 2006 6:46 pm Post subject: dhcp server fails to start [solved] |
|
|
Hi all,
I recently installed dhcp-3.0.3-r9 on my system to give out addresses on my LAN. I'm trying to run it from within a chroot but it fails to start even when I start it from outside.
Here's the error:
Code: | Dec 27 13:43:32 firefly dhcpd: /etc/dhcp/dhcpd.conf line 4: expecting a parameter or declaration
Dec 27 13:43:32 firefly dhcpd:
Dec 27 13:43:32 firefly dhcpd: ^
Dec 27 13:43:32 firefly dhcpd: Configuration file errors encountered -- exiting
Dec 27 13:43:32 firefly dhcpd: exiting. |
and here's my configuration file both inside and out the chroot:
Code: | authoritative;
ddns-update-style interim;
one-lease-per-client true;
option domain-name "popnet";
lease-time 600;
max-lease-time 7200;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
allow client-updates;
option domain-name-servers 192.168.1.42, 192.168.1.1;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
} |
any thoughts? i searched but found nothing relating to this
Last edited by popcan on Wed Dec 27, 2006 9:45 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Wed Dec 27, 2006 8:47 pm Post subject: |
|
|
Here is my configuration and it works perfectly
Quote: | dns-update-style none;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.75 192.168.0.100;
option domain-name-servers 192.168.0.1;
option domain-name "penguin.canuckster.org";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 10000;
max-lease-time 20000;
}
|
Last edited by Evileye on Thu Dec 28, 2006 4:49 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
popcan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Nov 2004 Posts: 33 Location: bath, ny
|
Posted: Wed Dec 27, 2006 9:45 pm Post subject: |
|
|
ah ha!
the problem was with the lease-time variable
it needed to be default-lease-time
after that it started right up, silly error could have been more specific |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|