LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant find dhcpcd.conf in \etc\. (https://www.linuxquestions.org/questions/linux-newbie-8/cant-find-dhcpcd-conf-in-%5Cetc%5C-304292/)

malikowais 03-21-2005 09:03 AM

Cant find dhcpcd.conf in \etc\.
 
I m new to Linux, I am trying to run DHCP server. I have installed dhcpd package (rpm) from CD Redhat 8.0, it was installed properly but i cant find dhcpd.conf file anywhere for modification. Pls help me. dhcpd and dhcpd relay serives are running fine.

Technoslave 03-21-2005 10:04 AM

Try locate dhcpd.conf ( as root )

Otherwise just create your own.

mah dhcpd.conf might be of help too.

logo 03-21-2005 02:33 PM

I had the same question. The answer is simple, it isn't created by default, I had to create it on my own.

masonm 03-21-2005 08:25 PM

Did you look in /etc/confd/ ?

malikowais 03-21-2005 10:58 PM

Thanks for reply. I am working as root but could not find in any directory. For creating from scratch is there any sample?or i'll have to write all the things? if anyone can send me sample file.

logo 03-22-2005 01:38 AM

Sample dhcpd.conf
 
Sure. Here's mine
Code:

ddns-update-style none;
subnet 10.1.1.0 netmask 255.255.255.0
{
range 10.1.1.2 10.1.1.64;
option domain-name-servers my.dns.server.1, my.dns.server.2;
option routers 10.1.1.1;
option subnet-mask 255.255.255.0;
default-lease-time 86400;
max-lease-time 604800;
}

It's quite a simple setup, which allocates IP's from 10.1.1.2-10.1.1.64, set's their DNS and gateway (option routers) and a lease time (86400=1day). If you need something more complicated, I suggest you read the man for dhcpd.conf and dhcpd.

vimal 03-22-2005 01:45 AM

hi guys,
please use the sample file in /usr/share/doc/dhcp/dhcpd.conf.sample. copy it to /etc/dhcpd.conf and configure it to your needs.


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