Hello all,
I have recently setup a Redhat EL Advanced Server 3.0 box and am
intending to have it serve DHCP for me. I used the custom installation
option and made sure that I installed dhcpd during the initial RH
install. I then created a simple dhcpd.conf file in /etc :
subnet 10.32.0.0 netmask 255.255.0.0 {
range 10.32.0.100 10.32.100.100;
}
permissions on the conf file are -rw--r--r-- and ownership is root.
There is one NIC in the machine (eth0) and its address is 10.32.0.10
(and yes it is on the same subnet as I have declared in dhcpd.conf).
IP(6)tables/chains were not installed, and chkconfig was used to turn
them "off" if they indicated they were "on" for any runlevel. chkconfig
was used to turn dhcpd on.
The init scripts do not pass any command line arguments to dhcpd,
although I have modified them to do so to no avail and put them back at
default. (However, the way to do this was by modifying
/etc/sysconfig/dhcpd which has a $DHCPDARGS= line in it that is empty
by default. This is where I placed any command-line arguments that I
tried. I also temporarily modified the dhcpd init script to spit out
the return value of dhcpd which ends up being "1").
If I manually try to run dhcpd (say for instance with a "dhcpd -cf
/etc/dhcpd.conf eth0", it gives me the exact output I see in
/var/log/messages from the init script's attempt at starting dhcpd,
which tells me it is ISC DHCPD V3.0p12, gives a short message about
ddns behavior, asks whether I got the software from ISC and have read
the readme (which I can't find in the redhat distro, but I am tempted
to go find one), and then it says "exiting." and just dies. This causes
a [FAILED] message when booting or trying to use "service dhcpd start".
I have read both manual pages for dhcpd and dhcpd.conf and can't find
anything that jumps out at me from them as to why this is happening.
The output from DHCPD doesn't indicate that anything is wrong at all
either thru /var/log/messages or the -f switch to run dhcpd as a
"non-daemonized" process.
I have verified the file /var/lib/dhcp/dhcp-leases exists and is empty
(I "touch"ed it to make sure it even was "up to date").
Does anyone have any idea why this is happening or how I can get more
information from dhcpd as to why it refuses to start?
thanks
Grant
|