Click to See Complete Forum and Search --> : DHCP installation
Mickv
01-26-2001, 02:32 AM
Hi all..
I installed Redhat 7, using the 'server' installation. It looks like it hasn't installed DHCPD. I can't find the files anywhere, and offcourse Webmin can't see it either.
I tried 'upgrade existing installation', but I can't seem the find the DHCPD package.
Any help would be greatly appreciated, thanks.
dvdnut
01-26-2001, 07:47 PM
have you got X installed
if so use the rpm package redhat gave you, and check out if dhcpd is installed
a good hint is to watch your bootup showing whats going on, does it list dhcpd?
non?
get out yer cd and install the bugger
job done
also there is an installation howto on ldp
Mickv
01-26-2001, 08:00 PM
Strange... I finally found the RPM while looking through the Redhat7 cd, when I tried to install it I received the system message that dhcpd is already installed. I can't find the files for it at all...
The files just don't seem to be there (ie. dhcpd.leases, dhcpd.conf).
What path should they be in with a Redhat 7 installation?
Thanks http://www.linuxnewbie.org/ubb/smile.gif
dvdnut
01-27-2001, 07:00 AM
/usr/sbin/dhcpd
Just going through my redhat 7.0 installation and here are the locations of my files.
dhcpd.conf /etc
dhcpd.leases /var/dhcpd/dhcpd.leases
Hope that helps
BFC
James Bond
01-27-2001, 12:37 PM
a strange problem with dhcpd and the dhcpd.leases is that it isn't created by default
on red hat 6.1, type
"touch /var/state/dhcp/dhcpd.leases"
without the quotes. You may need to create /var/state/dhcp I don't remember.
Also, if you want an example dhcpd.conf
# -------------------------------------------------------
# dhcpd.conf
#
# Config file for DHCPd server daemon.
#
# Written by Brad with help from people on www.linuxnewbie.org (http://www.linuxnewbie.org)
# let's just hope that it works
#
# Global settings
#
server-name "flint";
default-lease-time 2419200;
max-lease-time 24192000;
option subnet-mask 255.255.255.0;
option domain-name-servers X.X.X.X;
subnet 172.20.0.0 netmask 255.255.0.0 {}
subnet 192.168.13.0 netmask 255.255.255.0 {
range 192.168.13.20 192.168.13.30;
option broadcast-address 192.168.13.0;
option routers 192.168.13.1;
}
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.20 192.168.20.30;
option broadcast-address 192.168.20.0;
option routers 192.168.20.1;
}
# --- End of file: dhcpd.conf
Replace the X.X.X.X with your dns server, if you don't know it, set a machine up connected to your isp (however it is set up) and get the dns server that way.
This is configured for 3 ethernet cards where the 192.168.13.0/24 and 192.168.20.0/24 get their ip from this machine, and then, this machine routes their traffic through eth0. Need more help, send me an e-mail, brmolnar@ursinus.edu
I also wanted to write this down because I am going to clean my drives off for a new install of everything (not sure which disto yet), and I wanted to know how I got it working the first time.
good luck
-JB
<edit>took out my real DNS server</edit>
[This message has been edited by James Bond (edited 27 January 2001).]