LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-30-2005, 03:56 PM   #1
vcrispo
LQ Newbie
 
Registered: Jul 2004
Distribution: SUSE and Red Hat
Posts: 9

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


Hi,

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,

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

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
contents of dhcpd.conf wouldn't go amiss...
 
Old 06-18-2005, 03:48 PM   #3
dh99136751
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 123.123.123.0 if my assigned ip was 123.123.123.4?)
 
Old 06-20-2005, 10:11 AM   #4
vcrispo
LQ Newbie
 
Registered: Jul 2004
Distribution: SUSE and Red Hat
Posts: 9

Original Poster
Rep: Reputation: 0
dhcp problems

Yeah,

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.

Vin
 
Old 06-20-2005, 09:11 PM   #5
demian
Member
 
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:
Code:
subnet 10.10.0.0 netmask 255.255.255.0 {
  range 10.10.0.10 10.10.0.254;
  option routers router1.example.org, router2.example.org;
}
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
vcrispo
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.

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

Original Poster
Rep: Reputation: 0
dhcpd Subnet declaration issues

Well,

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.

Cheers,
 
  


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.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


All times are GMT -5. The time now is 04:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration