dhcpd 4.1.0p1 fails to start at bootup / starts manually

Andrews, Harold G CTR USAF HQ AF GCIC/CT Harold.Andrews.Ctr at langley.af.mil
Wed Sep 9 16:41:45 UTC 2009


The network services were starting before dhcpd was trying to start.  I got it working by essentially starting over... reinstalled the Fedora and used the GUI interface to set the DHCP options.  Works great.  All I can figure is that I had something stupid (not sure what) configured in the original installation.  Anyway, thanks for the suggestion.

-Andy

-----Original Message-----
From: dhcp-users-bounces at lists.isc.org [mailto:dhcp-users-bounces at lists.isc.org] On Behalf Of Tim Gavin
Sent: Tuesday, September 08, 2009 5:15 PM
To: Users of ISC DHCP
Subject: Re: dhcpd 4.1.0p1 fails to start at bootup / starts manually

It looks like your DHCP daemon is coming up before your networking
services to me.  I've had problems like that on RedHat and Fedora
machines.  Check your startup scripts in /etc/rc3.d and /etc/rc5.d .

Tim

On Tue, Sep 8, 2009 at 14:10, Andrews, Harold G CTR USAF HQ AF
GCIC/CT<Harold.Andrews.Ctr at langley.af.mil> wrote:
> Hello,
>
>
>
> I have an old Dell PowerEdge 1855 running FC11 which has DHCP 4.1.0p1
> installed.  I've added dhcpd to the list of services to start during bootup
> (chkconfig dhcpd on) but it fails to start during bootup.  However, I can
> log onto the server and start the service manually (service dhcpd start).
> The server is to provide DHCP to a single private network with no external
> connections.
>
>
>
> I've looked through the archives and couldn't see anything that seems to
> address the specifics of this problem.  A couple came close, but
> implementing the changes didn't fix the problem.  Any insights would be
> greatly appreciated.
>
>
>
> Thanks.
>
>
>
> -Andy
>
>
>
>
>
>
>
> ######################################################
>
> /var/log/messages:
>
>
>
> Message log entries from failed attempt to start service during boot:
>
>
>
> Sep  8 12:46:25 localhost dhcpd: Internet Systems Consortium DHCP Server
> 4.1.0p1
>
> Sep  8 12:46:25 localhost dhcpd: Copyright 2004-2009 Internet Systems
> Consortium.
>
> Sep  8 12:46:25 localhost dhcpd: All rights reserved.
>
> Sep  8 12:46:25 localhost dhcpd: For info, please visit
> http://www.isc.org/sw/dhcp/
>
> Sep  8 12:46:26 localhost dhcpd: Not searching LDAP since ldap-server,
> ldap-port and ldap-base-dn were not specified in the config file
>
> Sep  8 12:46:26 localhost dhcpd: Wrote 3 leases to leases file.
>
> Sep  8 12:46:26 localhost dhcpd:
>
> Sep  8 12:46:26 localhost dhcpd: Not configured to listen on any interfaces!
>
> Sep  8 12:46:26 localhost dhcpd:
>
> Sep  8 12:46:26 localhost dhcpd: This version of ISC DHCP is based on the
> release available
>
> Sep  8 12:46:26 localhost dhcpd: on ftp.isc.org.  Features have been added
> and other changes
>
> Sep  8 12:46:26 localhost dhcpd: have been made to the base software release
> in order to make
>
> Sep  8 12:46:26 localhost dhcpd: it work better with this distribution.
>
> Sep  8 12:46:26 localhost dhcpd:
>
> Sep  8 12:46:26 localhost dhcpd: Please report for this software via the Red
> Hat Bugzilla site:
>
> Sep  8 12:46:26 localhost dhcpd:     http://bugzilla.redhat.com
>
> Sep  8 12:46:26 localhost dhcpd:
>
> Sep  8 12:46:26 localhost dhcpd: exiting.
>
>
>
>
>
> Message log entries from successful attempt to start service manually:
>
>
>
> Sep  8 12:50:42 localhost dhcpd: Internet Systems Consortium DHCP Server
> 4.1.0p1
>
> Sep  8 12:50:42 localhost dhcpd: Copyright 2004-2009 Internet Systems
> Consortium.
>
> Sep  8 12:50:42 localhost dhcpd: All rights reserved.
>
> Sep  8 12:50:42 localhost dhcpd: For info, please visit
> http://www.isc.org/sw/dhcp/
>
> Sep  8 12:50:42 localhost dhcpd: Not searching LDAP since ldap-server,
> ldap-port and ldap-base-dn were not specified in the config file
>
> Sep  8 12:50:42 localhost dhcpd: Wrote 3 leases to leases file.
>
> Sep  8 12:50:42 localhost dhcpd: Listening on
> LPF/eth0/00:13:72:6a:1d:52/192.168.2.0/24
>
> Sep  8 12:50:42 localhost dhcpd: Sending on
> LPF/eth0/00:13:72:6a:1d:52/192.168.2.0/24
>
> Sep  8 12:50:42 localhost dhcpd: Sending on   Socket/fallback/fallback-net
>
>
>
> ######################################################
>
> /etc/rc.d/init.d/dhcpd: I added the DHCPDARGS=eth0.  Otherwise I left this
> as it was.
>
>
>
> #!/bin/sh
>
> #
>
> ### BEGIN INIT INFO
>
> # Provides: dhcpd
>
> # Default-Start:
>
> # Default-Stop:
>
> # Should-Start:
>
> # Required-Start: $network
>
> # Required-Stop:
>
> # Short-Description: Start and stop the DHCP server
>
> # Description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP)
>
> #              server.
>
> ### END INIT INFO
>
> #
>
> # The fields below are left around for legacy tools (will remove later).
>
> #
>
> # chkconfig: - 65 35
>
> # description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP)
> \
>
> #              server
>
> # processname: dhcpd
>
> # config: /etc/dhcp/dhcpd.conf
>
> # config: /var/lib/dhcpd/dhcpd.leases
>
> # pidfile: /var/run/dhcpd.pid
>
>
>
> . /etc/init.d/functions
>
> . /etc/sysconfig/network
>
>
>
> RETVAL=0
>
>
>
> prog=dhcpd
>
> dhcpd=/usr/sbin/dhcpd
>
> lockfile=/var/lock/subsys/dhcpd
>
> pidfile=/var/run/dhcpd.pid
>
> statedir=/var/lib/dhcpd
>
> DHCPDARGS=eth0
>
>
>
> [ -f /etc/sysconfig/dhcpd ] && . /etc/sysconfig/dhcpd
>
>
>
> # if the user specified a different config file, make sure we reference it
>
> findConfig() {
>
>     for arg in $DHCPDARGS ; do
>
>         if [ "$found" = 1 ]; then
>
>             [ -f "$arg" ] && echo "$arg"
>
>             return
>
>         fi
>
>         if [ "$arg" = "-cf" ]; then
>
>             found=1
>
>             continue
>
>         fi
>
>     done
>
>     echo "/etc/dhcp/dhcpd.conf"
>
> }
>
>
>
> conf="$(findConfig "$DHCPDARGS")"
>
>
>
> if [ ! -f $statedir/dhcpd.leases ] ; then
>
>     mkdir -p $statedir
>
>     touch $statedir/dhcpd.leases
>
>     [ -x /sbin/restorecon ] && [ -d /selinux ] && /sbin/restorecon
> $statedir/dhcpd.leases >/dev/null 2>&1
>
> fi
>
>
>
> configtest() {
>
>     [ -x $dhcpd ] || return 5
>
>     [ -f $conf ] || return 6
>
>     $dhcpd -q -t -cf $conf
>
>     RETVAL=$?
>
>     if [ $RETVAL -eq 1 ]; then
>
>         $dhcpd -t -cf $conf
>
>     else
>
>         echo "Syntax: OK" >&2
>
>     fi
>
>     return $RETVAL
>
> }
>
>
>
> start() {
>
>     [ -x $dhcpd ] || return 5
>
>     [ -f $conf ] || return 6
>
>
>
>     pidofproc $prog >/dev/null 2>&1
>
>     RETVAL=$?
>
>     [ $RETVAL -eq 0 ] && return $RETVAL
>
>
>
>     echo -n $"Starting $prog: "
>
>     daemon $dhcpd $DHCPDARGS 2>/dev/null
>
>     RETVAL=$?
>
>     echo
>
>     [ $RETVAL = 0 ] && touch $lockfile
>
>     return $RETVAL
>
> }
>
>
>
> stop() {
>
>     pidofproc $prog >/dev/null 2>&1
>
>     if [ $? -ne 0 ]; then
>
>         RETVAL=7
>
>         return $RETVAL
>
>     fi
>
>
>
>     echo -n $"Shutting down $prog: "
>
>     killproc $prog
>
>     RETVAL=$?
>
>
>
>     echo
>
>     [ $RETVAL = 0 ] && rm -f $lockfile
>
>     return $RETVAL
>
> }
>
>
>
> if [ $# -gt 1 ]; then
>
>     RETVAL=2
>
>     exit $RETVAL
>
> fi
>
>
>
> case "$1" in
>
>     start)
>
>         start
>
>         RETVAL=$?
>
>         ;;
>
>     stop)
>
>         stop
>
>         RETVAL=$?
>
>         ;;
>
>     restart|force-reload)
>
>         stop ; start
>
>         RETVAL=$?
>
>         ;;
>
>     condrestart)
>
>         if [ -f $lockfile ]; then
>
>             stop ; start
>
>             RETVAL=$?
>
>         fi
>
>         ;;
>
>     configtest)
>
>         configtest
>
>         RETVAL=$?
>
>         ;;
>
>     status)
>
>         status $dhcpd
>
>         RETVAL=$?
>
>         ;;
>
>     *)
>
>         echo $"Usage: $0 {start|stop|restart|condrestart|configtest|status}"
>
>         RETVAL=3
>
>         ;;
>
> esac
>
>
>
> exit $RETVAL
>
>
>
>
>
> ######################################################
>
>  /etc/dhcp/dhcpd.conf:
>
>
>
> default-lease-time 86400;
>
> max-lease-time 86400;
>
> authoritative;
>
> ignore client-updates;
>
> ddns-updates on;
>
> ddns-domainname "privatedomain.com";
>
>
>
> subnet 192.168.2.0 netmask 255.255.255.0
>
> {
>
>   range 192.168.2.32 192.168.2.254;
>
>   option domain-name-servers 192.168.2.0;
>
>   option domain-name "privatedomain.com ";
>
>   option broadcast-address 192.168.2.255;
>
>   option subnet-mask 255.255.255.0;
>
>   option ntp-servers 192.168.2.0;
>
> };
>
>
>
> ######################################################
>
>  /etc/sysconfig/network-scripts/ifcfg-eth0:
>
>
>
> HWADDR=00:13:72:6A:1D:52
>
> TYPE=Ethernet
>
> BOOTPROTO=none
>
> IPADDR=192.168.2.0
>
> PREFIX=24
>
> GATEWAY=192.168.2.0
>
> DNS1=192.168.2.0
>
> NAME="eth0"
>
> UUID=926fa76e-8c74-48dd-803c-34e758fe7696
>
> ONBOOT=yes
>
>
>
> ######################################################
>
>  /etc/sysconfig/network-scripts/route-eth0:
>
>
>
> 255.255.255.255 via 192.168.2.0
>
>
>
> ######################################################
>
> ifconfig:
>
>
>
> eth0      Link encap:Ethernet  HWaddr 00:13:72:6A:1D:52
>
>           inet addr:192.168.2.0  Bcast:192.168.2.255  Mask:255.255.255.0
>
>           inet6 addr: fe80::213:72ff:fe6a:1d52/64 Scope:Link
>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:6480 (6.3 KiB)  TX bytes:5516 (5.3 KiB)
>
>
>
> eth1      Link encap:Ethernet  HWaddr 00:13:72:6A:1D:53
>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>
>
>
> eth2      Link encap:Ethernet  HWaddr 00:14:22:0C:8A:08
>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>
>
>
> eth3      Link encap:Ethernet  HWaddr 00:14:22:0C:8A:09
>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>
>
>
> lo        Link encap:Local Loopback
>
>           inet addr:127.0.0.1  Mask:255.0.0.0
>
>           inet6 addr: ::1/128 Scope:Host
>
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>
>           RX packets:332 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:0
>
>           RX bytes:27144 (26.5 KiB)  TX bytes:27144 (26.5 KiB)
>
>
>
> pan0      Link encap:Ethernet  HWaddr BE:39:41:46:64:8C
>
>           BROADCAST MULTICAST  MTU:1500  Metric:1
>
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:0
>
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users



More information about the dhcp-users mailing list