LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DHCPD not installed in the default library, gives me trouble (https://www.linuxquestions.org/questions/linux-software-2/dhcpd-not-installed-in-the-default-library-gives-me-trouble-727300/)

namicron 05-20-2009 10:42 AM

DHCPD not installed in the default library, gives me trouble
 
Hi all

I have install dhcpd by this

./configure --prefix=/srv/dhcp-4.1.0/
make
make install

When i start up the dhcpd with a correct dhcpd.conf file it gives me this error, no subnet declararion for eth0 bla bla bla, mostly because i think it cannot find the dhcpd.conf file. Maybe its because i have to link the DHCPD to know where to find the dhcpd.conf file?

does anybody have an idea of what could be wrong and what should i look for?

Thanx for all reply

norobro 05-20-2009 05:38 PM

Quote:

Originally Posted by namicron (Post 3547068)
Maybe its because i have to link the DHCPD to know where to find the dhcpd.conf file?

The above statement confused me, so maybe I misunderstand your question, but from the source code (dhcbd.h):
Code:

#define _PATH_DHCPD_CONF        "/etc/dhcpd.conf"
Is that the location of your config file?

namicron 05-22-2009 05:45 AM

if I do this
./configure --prefix=/srv/dhcp-4.1.0/
make
make install

my dhcp.conf is in /srv/dhcp-4.1.0/etc/dhcp.conf


and btw, i have made it work now with the ./dhcpd -cf /srv/dhcp/etc/dhcpd.conf

-cf defines where dhcpd should look for its configuration file if it is not place by default


All times are GMT -5. The time now is 12:58 AM.