LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2005, 10:03 AM   #1
malikowais
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
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.
 
Old 03-21-2005, 11:04 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Try locate dhcpd.conf ( as root )

Otherwise just create your own.

mah dhcpd.conf might be of help too.
 
Old 03-21-2005, 03:33 PM   #3
logo
Member
 
Registered: Sep 2004
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
I had the same question. The answer is simple, it isn't created by default, I had to create it on my own.
 
Old 03-21-2005, 09:25 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Did you look in /etc/confd/ ?
 
Old 03-21-2005, 11:58 PM   #5
malikowais
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 03-22-2005, 02:38 AM   #6
logo
Member
 
Registered: Sep 2004
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
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.
 
Old 03-22-2005, 02:45 AM   #7
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
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.
 
  


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
can't find modules.conf under /etc 1sciroccofahrer Linux - Newbie 7 04-20-2005 07:01 PM
resolv.conf ifup dhcpcd not working together andrewguy9 Linux - Wireless Networking 1 03-19-2005 03:43 PM
resetting dhcpcd to find ip on another network chuck_notorious Linux - Networking 0 11-03-2004 06:33 AM
Why can't I find dhcpcd ? ozstar Linux - Networking 4 11-03-2003 06:22 AM
dhcp.conf can't find in rh 7.1 xtian500 Linux - Software 1 11-09-2001 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration