LinuxQuestions.org
Help answer threads with 0 replies.
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 04-30-2006, 08:54 PM   #1
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
DHCPD Won't start.


I've used DHCPD before, but this time, it simply won't start. I use the command /etc/init.d/dhcpd start, and it just says: Starting dhcp: [FAILED]. Here's the dhcpd.conf:
Code:
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
# Green Side
subnet 192.168.1.0 netmask 255.255.255.0 {
        option domain-name-servers 24.92.226.9;
        option broadcast-address 192.168.1.255;
        option subnet-mask 255.255.255.0;
        option routers 192.168.1.1;
        range 128.168.1.100 192.168.1.150;
        }
Thanks.
 
Old 04-30-2006, 09:30 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Run it yourself, instead of letting the initscript do it, and you might get some better error messages:
Code:
dhcpcd eth0
 
Old 04-30-2006, 11:59 PM   #3
baboooss
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Rep: Reputation: 0
First check your network configuration....and IP address
 
Old 05-01-2006, 11:17 AM   #4
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Ok, eth1 looks OK:
Code:
eth1      Link encap:Ethernet  HWaddr 00:07:E9:0F:6F:16  
          inet addr:192.168.1.1  Bcast:192.168.255.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0xdc00 Memory:ff8e0000-ff900000
Here's the output of dhcpd eth1:
Code:
[root@localhost etc]# /usr/sbin/dhcpd eth1
Internet Systems Consortium DHCP Server V3.0.3-RedHat
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Address range 128.168.1.100 to 192.168.1.150, netmask 255.255.255.0 spans multiple subnets!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
 
Old 05-01-2006, 12:14 PM   #5
rays
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
add this line in the beginning of /etc/dhcpd.conf (DHCP server configuration)file. remaining lines are ok. save it and restart the service.

ddns-update-style interim;
 
Old 05-01-2006, 12:43 PM   #6
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Quote:
Originally Posted by pdeman2
Here's the output of dhcpd eth1:
Code:
[root@localhost etc]# /usr/sbin/dhcpd eth1
Internet Systems Consortium DHCP Server V3.0.3-RedHat
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Address range 128.168.1.100 to 192.168.1.150, netmask 255.255.255.0 spans multiple subnets!

exiting.
Ah, you have a typo, which I didn't notice before. See, the first number in your "range" is 128 instead of 192.
 
Old 05-01-2006, 01:15 PM   #7
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Okay, two things did it; the ddns-update-style thing, and the typo. Thanks for the help.
 
Old 05-01-2006, 11:10 PM   #8
baboooss
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Rep: Reputation: 0
Your address range is wrong in dhcp configuration .Change starting address to 192 instaed of 128

that will work
 
Old 05-02-2006, 10:55 AM   #9
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Yeah, got it.
 
Old 07-05-2012, 09:42 AM   #10
aalinare
LQ Newbie
 
Registered: Jul 2012
Posts: 14

Rep: Reputation: Disabled
Greetings,

I have my own dhcpd.conf file edit similar to the one above;..

I have the foll0wing lines ...ex:

ddns-update-style interim;
ignore clients-updates;

DHCPDARGS=eth1; # server eth1 manually set to 192.168.1.10/24

subnet 192.168.1.0 mask 255.255.255.0 {
option routers
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.10;
default-lease-time 43200;
max-lease-time 86400;
}

when i try and start the service...it fails...when running the dhcpd eth1, i get "no subnet declarations for eth1 (192.168.1.10)

can anyone provide any assistance on this
 
Old 07-07-2012, 09:57 AM   #11
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by aalinare View Post
Greetings,

I have my own dhcpd.conf file edit similar to the one above;..

I have the foll0wing lines ...ex:

ddns-update-style interim;
ignore clients-updates;

DHCPDARGS=eth1; # server eth1 manually set to 192.168.1.10/24

subnet 192.168.1.0 mask 255.255.255.0 {
option routers
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.10;
default-lease-time 43200;
max-lease-time 86400;
}

when i try and start the service...it fails...when running the dhcpd eth1, i get "no subnet declarations for eth1 (192.168.1.10)

can anyone provide any assistance on this
Is there a semicolon missing after option routers?
 
Old 07-09-2012, 05:52 PM   #12
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
http://sharadchhetri.com/2011/01/19/...e-dhcp-server/

I hope you will explore some more things in this blog post
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dhcpd no start finsh Linux - Networking 1 01-22-2006 09:35 AM
dhcpd can not start vito_huang Linux - Networking 2 02-15-2005 03:41 PM
dhcpd will not start odious1 Linux - Networking 1 04-08-2004 03:13 PM
Don't want dhcpd to start on startup rech Slackware 1 11-09-2003 12:05 PM
How to start dhcpd at boot up jkcunningham Linux - Networking 8 11-21-2002 09:31 AM

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

All times are GMT -5. The time now is 12:43 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