PDA

View Full Version : DHCPD.conf - error message: Not configured to listen on any interfaces.


alinuxFF
2005-10-15, 01:35 PM CDT
Using RedHat AS Enterprise edition I copied out the recommended dchpd.conf file (from the RHFedora + Enterprise Linux Bible by C. Negus) with my own adaptions - very little.

When I used the command line "service dhcpd start" I got the following message:
Not configured to listen on any interfaces!

Here is my entire dhcpd.conf file:

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

subnet 10.0.0.0 netmask 255.255.255.0 {

option routers 10.0.0.1;
option domain-name-servers 10.0.0.1;
option subnet-mask 255.255.255.0;
option domain-name "itec240.com";
range dynamic-bootp 10.0.0.150 10.0.0.225;
default-lease-time 21600;
max-lease-time 43200;

#set name server to appear at a fixed address

host ns {
next-server ns1.itec240.com;
hardware ethernet 00:0D:87:09:E8:B9;
fixed-address 10.0.0.1;
}
}

Yes, I know using 10.0.0.1 isn't the best choice - but that is what the text gives - and it enables me to be sure it doesn't interfere with the settings of the router I usually use.

I have tried the dhcpd.conf file on two computers, including trying a modified version of the dhcpd.conf.sample and still and got the same error message. All the books just say to configure using these dhcpd.conf files and everything will be fine - but it isn't!

So how can I configure it to work on an interface?

giulix
2005-10-20, 07:00 AM CDT
Check that you have this file:
/etc/sysconfig/dhcpd

# Command line options here
DHCPDARGS=eth1

eth1 is of course the interface dhcpd should listen to

P.S. Hope it's not too late...

P.P.S. How long ago is considered "gravedigging" in this forum ? :D

alinuxFF
2005-10-24, 10:08 PM CDT
Thanks guilix for the suggestion. I only have eth0, and by stating that in DHCPDARGS=eth0 PLUS creating a second subnet, it worked.