LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2009, 10:48 AM   #1
ruddyrum
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 37

Rep: Reputation: 16
Can't start dhcpd3!!!


I have been trying to setup dchp3 and im at wits end!

I am running the latest build of ubuntu - fresh install... all i have done is literally apt-get install dhcp3-server!

So this is what i have done configuration-wise:

Edit /etc/network/interfaces config file for static IP

Code:
1.auto wlan0
2.iface wlan0 inet static
3.address 192.168.0.100
4.netmask 255.255.255.0
5.network 192.168.0.0
6.broadcast 192.168.0.255
7.gateway 192.168.0.1
Edit /etc/dhcp3/dhcpd.conf
Code:
option domain-name-servers 145.253.2.75, 193.174.32.18;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.200 192.168.0.229;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.0.255;
        option routers 192.168.0.1;
}
add INTERFACES=”wlan0″ to /etc/defaults/dhcp3-server

run /etc/init.d/dhcp3-server start (or restart... both have the same result)

Code:
root@ruddyrum:/home/ruddyrum# /etc/init.d/dhcp3-server restart
Stopping DHCP server: dhcpd3 failed!
Starting DHCP server: dhcpd3* check syslog for diagnostics.
 failed!
root@ruddyrum:/home/ruddyrum# tail -f /var/log/syslog
Aug  7 16:21:10 dhcpd: Wrote 0 leases to leases file.
Aug  7 16:21:10 dhcpd:
Aug  7 16:21:10 dhcpd: No subnet declaration for wlan0 (0.0.0.0).
Aug  7 16:21:10 dhcpd: ** Ignoring requests on wlan0.  If this is not what
Aug  7 16:21:10 dhcpd:    you want, please write a subnet declaration
Aug  7 16:21:10 dhcpd:    in your dhcpd.conf file for the network segment
Aug  7 16:21:10 dhcpd:    to which interface wlan0 is attached. **
Aug  7 16:21:10 dhcpd:
Aug  7 16:21:10 dhcpd:
Aug  7 16:21:10 dhcpd: Not configured to listen on any interfaces!
^C
I read that if the server still has issues starting up, then one should remove the following from the /etc/init.d/dhcp3-server start script

Code:
1.# Allow ltsp to override
2.if [ -f /etc/ltsp/dhcpd.conf ]; then
3.CONFIG_FILE=/etc/ltsp/dhcpd.conf
4.break
5.fi
However this still does not help me as the server still fails to start! any advice is much appreciated!

Last edited by ruddyrum; 08-07-2009 at 10:50 AM.
 
Old 08-07-2009, 10:50 AM   #2
ruddyrum
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 37

Original Poster
Rep: Reputation: 16
Fixed... Had a brainfart!!!

Forgot to run /etc/init.d/networking restart after i set all the network settings!
 
Old 08-07-2009, 11:17 AM   #3
ruddyrum
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 37

Original Poster
Rep: Reputation: 16
it did work...!

now i have the same issue

Code:
root@ruddyrum:/home/ruddyrum# /etc/init.d/dhcp3-server restart
Stopping DHCP server: dhcpd3 failed!
Starting DHCP server: dhcpd3* check syslog for diagnostics.
 failed!
root@ruddyrum:/home/ruddyrum# tail -f /var/log/syslog
Aug  7 16:21:10 dhcpd: Wrote 0 leases to leases file.
Aug  7 16:21:10 dhcpd:
Aug  7 16:21:10 dhcpd: No subnet declaration for wlan0 (0.0.0.0).
Aug  7 16:21:10 dhcpd: ** Ignoring requests on wlan0.  If this is not what
Aug  7 16:21:10 dhcpd:    you want, please write a subnet declaration
Aug  7 16:21:10 dhcpd:    in your dhcpd.conf file for the network segment
Aug  7 16:21:10 dhcpd:    to which interface wlan0 is attached. **
Aug  7 16:21:10 dhcpd:
Aug  7 16:21:10 dhcpd:
Aug  7 16:21:10 dhcpd: Not configured to listen on any interfaces!
^C
What is going wrong?

Last edited by ruddyrum; 08-07-2009 at 11:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get list or count of unleased ips from dhcpd3? matiasquestions Linux - Networking 2 07-24-2008 02:57 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
Computer doesn't start; fans start then stop; 1 long, 1 short beep PatrickMay16 General 18 09-26-2007 07:48 PM
updating dhcpd to dhcpd3.0.4 hot to install rca Linux - Networking 1 10-05-2006 01:16 PM
Strange Bind9 & Dhcpd3 Problem (stuck here :() Notorious Linux - Software 1 11-09-2004 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration