LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcpd subnet declaration problems in dhcpd.conf (https://www.linuxquestions.org/questions/linux-networking-3/dhcpd-subnet-declaration-problems-in-dhcpd-conf-328628/)

vcrispo 05-30-2005 03:56 PM

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

acid_kewpie 05-30-2005 04:16 PM

contents of dhcpd.conf wouldn't go amiss...

dh99136751 06-18-2005 03:48 PM

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?)

vcrispo 06-20-2005 10:11 AM

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

demian 06-20-2005 09:11 PM

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.

vcrispo 06-21-2005 10:42 AM

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

vcrispo 07-15-2005 10:32 AM

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,


All times are GMT -5. The time now is 03:36 AM.