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


  Search this Thread
Old 05-30-2005, 03:56 PM   #1
LQ Newbie
Registered: Jul 2004
Distribution: SUSE and Red Hat
Posts: 9

Rep: Reputation: 0
Unhappy dhcpd subnet declaration problems in dhcpd.conf


I just upgraded to SUSE 9.3 professional doing a fresh install from SUSE 9.2. When I tried to start the DHCPD server, it keeps stating "No subnet declaration". I had the DHCPD server running under SUSE 9.2. I have even used the example dhcpd.conf file that comes with SUSE but it keeps giving me the same error. I have tried the most basic setup. I have swapped both my NIC cards but still no luck.

I've been googling around but haven't found anybody with my problem. I've been running a dhcpd server since SUSE 9.1. and have never encountered this problem before.

I run rcdhcpd start -t to test the file and it's OK but when I run it, I get the error. But then if I go back with rcdhcpd start -t, I will get the error.

Any clues,

Old 05-30-2005, 04:16 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
contents of dhcpd.conf wouldn't go amiss...
Old 06-18-2005, 03:48 PM   #3
LQ Newbie
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
I have the same problem. dhcpd.conf setting have gone amiss.

I am running Fedora Core 3. Last night I ran updates. After that, dhcp ceased to function. I receive the message that I have not provided a subnet for my public (internet) interface (eth1). My ip is static (assigned by ISP). I don't know what the subnet should be for my ISP assigned address.

dhcp is (was) configured to provide addresses on eth0 (internal interface). Anyone have any suggestions?
Should I enter an Options section that lists my assigned ip but ending with .0 (as in if my assigned ip was
Old 06-20-2005, 10:11 AM   #4
LQ Newbie
Registered: Jul 2004
Distribution: SUSE and Red Hat
Posts: 9

Original Poster
Rep: Reputation: 0
dhcp problems


I received those errors too but haven't found a solution. I'm reloading SUSE 9.2. and starting from there. I've tried everything else like uninstalling then reinstalling the dhcp(d) software but nothing seems to work.

I'll let you know what happens. However, both my son's teams are wrapping up their baseball seasons by being in the playoffs and I won't be able to get to it for a few days at least.

Old 06-20-2005, 09:11 PM   #5
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
You're not seriously considering downgrading your entire system because your dhcp server doesn't work?!?

The error message is pretty clear: You don't have a subnet declared. Post the contents of the config file as acid_kewpie suggested.

A basic subnet declaration might look like this:
subnet netmask {
  option routers,;
But obviously you will need to adjust that to suit your network.

Last edited by demian; 06-20-2005 at 10:39 PM.
Old 06-21-2005, 10:42 AM   #6
LQ Newbie
Registered: Jul 2004
Distribution: SUSE and Red Hat
Posts: 9

Original Poster
Rep: Reputation: 0
demian -

Yes I did downgrade, temporarily anyway. The file I was using is the same one that I've been using since SUSE 9.1. It worked perfectly for 9.1. and 9.2. When I upgraded to SUSE 9.3, I started having all types of problems.

I even tried using the example dhcpd.conf that came with SUSE 9.3 (modified with the correct addresses).

I should be able to test it within the next few days when my son's little league baseball is over with.

Thanks for writing.

Old 07-15-2005, 10:32 AM   #7
LQ Newbie
Registered: Jul 2004
Distribution: SUSE and Red Hat
Posts: 9

Original Poster
Rep: Reputation: 0
dhcpd Subnet declaration issues


I finally figured out my goof. I must have done something when I upgraded from suse 9.2 to 9.3 because when I configured my second card again with the IP address I had assigned it in the dhcpd.conf file originally, the dhcpd server started working again. Somehow, I had wiped out the configuration for the second card and didn't realize it. This was causing the "No subnet declaration" message.

Basically, I have a machine with two NIC cards. One card is configured with the static IP address of my ISP. On my second NIC card, I assign it the IP address that I had set in the dhcpd.conf file.



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.conf exalik Linux - Networking 2 10-15-2012 09:13 AM
help with dhcpd.config file to assign address's to clients on another subnet ccammack Linux - Networking 2 10-03-2005 09:42 AM
Config DHCPD for non-direct connected subnet desmondwck Linux - Software 0 05-14-2004 09:36 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 AM.

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