Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's wong with this dhcpd configuration?
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
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Mon Apr 02, 2012 2:28 pm    Post subject: What's wong with this dhcpd configuration? Reply with quote

Code:
option domain-name-servers 8.8.8.8;
max-lease-time 86400;min-lease-time 86400;
option routers 192.168.1.1;
ddns-update-style none;
deny booting;
deny duplicates;
deny Declines;
allow Leasequery;
local-address 192.168.1.2;
log-facility syslog;
one-lease-per-client false;
ping-check false;
host up {
        hardware ethernet 00:1c:23:a1:9d:09;
        fixed-address 192.168.1.3;
}
host down {
        hardware ethernet 00:1c:23:a1:9d:09;
        fixed-address 192.168.1.4;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }


Every time I install and attempt to configure this package, it spits out all kinds of errors which I didn't encounter last time. I hope this wont be the case with BIND.

Code:
/etc/dhcp/dhcpd.conf line 6: semicolon expected.
deny
 ^
/etc/dhcp/dhcpd.conf line 6: expecting a parameter or declaration
deny booting;
             ^
/etc/dhcp/dhcpd.conf line 22: subnet 192.168.1.1 netmask 255.255.255.0: bad subnet number/mask combination.
subnet 192.168.1.1 netmask 255.255.255.0
                                       ^
Configuration file errors encountered -- exiting

_________________
My blog


Last edited by dE_logics on Tue Apr 03, 2012 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
your_WooDness
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2007
Posts: 77

PostPosted: Tue Apr 03, 2012 4:53 am    Post subject: Reply with quote

Hi there,

concerning the subnet...the subnet decleration should be rather

Code:
subnet 192.168.1.0 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }


than
Code:

subnet 192.168.1.1 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }

You should check the option "deny booting;" and if it's described in the man page of dhcpd.conf...maybe it has changed over some versions, got kicked out has more options to set...?

WooD
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Apr 03, 2012 9:44 am    Post subject: Reply with quote

your_WooDness wrote:
Hi there,

concerning the subnet...the subnet decleration should be rather

Code:
subnet 192.168.1.0 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }


than
Code:

subnet 192.168.1.1 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }

You should check the option "deny booting;" and if it's described in the man page of dhcpd.conf...maybe it has changed over some versions, got kicked out has more options to set...?

WooD


Oh, sorry about the bad subnet, I'd already fixed that.

Even if I hash out 'deny booting', it complains about some other option (in a similar way)... and I keep hashing out till everything is hashed out.
_________________
My blog
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Apr 03, 2012 10:10 am    Post subject: Reply with quote

Ok, got it, there was a duplicate invalid entry "ddns-update-style".
_________________
My blog
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