Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

What's wong with this dhcpd configuration?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

What's wong with this dhcpd configuration?

  • Quote

Post by dE_logics » Mon Apr 02, 2012 2:28 pm

Code: Select all

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: Select all

/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
Last edited by dE_logics on Tue Apr 03, 2012 9:42 am, edited 1 time in total.
My blog
Top
your_WooDness
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Thu Oct 25, 2007 9:01 am

  • Quote

Post by your_WooDness » Tue Apr 03, 2012 4:53 am

Hi there,

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

Code: Select all

subnet 192.168.1.0 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }
than

Code: Select all

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
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Tue Apr 03, 2012 9:44 am

your_WooDness wrote:Hi there,

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

Code: Select all

subnet 192.168.1.0 netmask 255.255.255.0 {
                range 192.168.1.5 192.168.1.254;
       }
than

Code: Select all

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
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Tue Apr 03, 2012 10:10 am

Ok, got it, there was a duplicate invalid entry "ddns-update-style".
My blog
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic