Click to See Complete Forum and Search --> : Dhcpd


tonimontanna
01-07-2003, 09:40 PM
Decided to set up DHCP for my boxes sitting behond my firewall. Installed DHCP off of my Redhat cd and can not find the dhcpd.conf.

(This is redhat 6.2)

Looked in /etc/dhcpd.conf and cannot find the config file.

I quite stumped right now. I have looked at mini how-tos with no luck.

Now, I just installed dhcp on my redhat 8.0 box and there is still not an /etc/dhcpd.conf

:eek:

mychl
01-09-2003, 03:09 AM
Make sure you install the right package....

there are 2 types of dhcp packages... one is the dhcp server, and the other is the dhcp client..... maybe you installed the client one and not the server.....

HTH

dugg
01-09-2003, 04:12 AM
cp /usr/share/doc/dhcp-<version-number>/dhcpd.conf.sample /etc/dhcpd.conf

Brought to you from here (http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-dhcp-configuring-server.html)

Good Luck

bastard23
01-09-2003, 06:25 AM
tonimontanna,

I agree with mychl, you can have dhcpcd (client) and dhcpd (server).

Some other command to find the file:

locate dhcpd.conf
-or-
find / -name dhcpd.conf

It may be in /etc/dhcp or /var or something.
It could also be that it doesn't install a dhcpd.conf file by default. You really don't want a dhcp server running unless you mean to. It could screw up your network if you had two dhcp servers running, but only setup one. You should check out the dhcpd package documentation (/usr/share/doc/<package> or something, I don't run RedHat).

Good Luck,
chris

sudo
01-14-2003, 11:28 AM
hhmmmmmm....

ur prob is actually quite simple....

the file dhcpd.conf DOES NOT EXIST!!!

no panic... its a file u create urself!!!
eksample:
subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.5 10.1.1.9; option subnet-mask 255.255.255.0;
option routers 10.1.1.1; option domain-name "localdomain";
option domain-name-servers 10.1.1.1;
default-lease-time 36000;
max-lease-time 86400;
}

tonimontanna
01-14-2003, 12:29 PM
I got it to work folks.

Thanks!

:D

sudo
01-15-2003, 02:40 PM
ur welcome :)
always a pleasure helping out.... (if it actually me who helped LOL)