Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp server fails to start [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
popcan
n00b
n00b


Joined: 27 Nov 2004
Posts: 33
Location: bath, ny

PostPosted: Wed Dec 27, 2006 6:46 pm    Post subject: dhcp server fails to start [solved] Reply with quote

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
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Wed Dec 27, 2006 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
popcan
n00b
n00b


Joined: 27 Nov 2004
Posts: 33
Location: bath, ny

PostPosted: Wed Dec 27, 2006 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum