Cannot get dhcpd to start. (PEBCAK related)
O.K. Ive been fighting with this for hours. I have a server machine with 2 NICs eth0 and eth1. It's running Red Hat Enterprise Linux ES3. Fresh install a few days ago with what I believe to be all the appropriate packages to serve DHCP with. My /etc/dhcpd.conf is simply the one I coppied from /usr/share/doc/dhcp-3.0.1 and looks like this
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
-------------------------------------------------------------------------
(learned how to do that from another forum)
I read somewhere else that I needed to create /var/state/dhcp/dhcpd.leases, so I did. (had to create the DHCP folder in /var/state first because it wasn't there.
When I try to start dhcpd in debugging mode from the console with /usr/sbin/dhcpd -d -f, I get this...
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit *******************
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
No subnet declaration for eth1 (72.185.192.166).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
No subnet declaration for eth0 (192.168.1.254).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **
Not configured to listen on any interfaces!
exiting.
-------------------------------------------------------------------------
I assigned that static IP to eth0 just so it could be activated without trying to pull an IP dynamically from somewhere. This is probably wrong, but this is my first time trying to set up a DHCP server, so...
I was also told I needed to do this from the console
route add -host 255.255.255.255 dev eth0
so I did. Having done that, I am not sure if I should be trying to use eth0 or eth1 to listen for DHCP requests from other machines, and of course, I don't know how to tell either one of them to do that either.
Please help
Last edited by misterhead; 06-07-2008 at 02:05 PM.
|