I'm at my wit's end (yes, that's a singular wit -- all I have left :).  I
have 2 RH boxes, a 6.1 and a 6.2, both running kernel 2.2.16-3.  Both are
configured identically as far as dhcpd is concerned (as far as I can tell),
yet the 6.1 box works and the 6.2 doesn't.  The 6.2 box starts dhcpd
successfully, then later (still pre-login) kills it due to no definition for
eth1 0.0.0.0 (huh??????).  I can't find where this net is being defined,
assuming that's the cause.  Of course the 6.2 box is the "real" one, and the
6.1 box was for testing purposes only, and they can't be swapped. :(

After startup, if I login and then run '/etc/rc.d/init.d/dhcpd start', all
is OK.  Of course, this is not adequate, as I won't be at the client's 24/7
waiting for power outages.

Relevant config files follow, as well as /var/log/messages for both
machines.  Looking for where to look next -- see **[...] for my comments.
TIA...

ifcfg-eth0 (6.2):
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NAME=PUBLIC

ifcfg-eth1 (6.2):
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
NAME=PRIVATE

ifcfg-eth0 (6.1):
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NAME=PUBLIC

ifcfg-eth1 (6.1):
DEVICE=eth1
ONBOOT=yes
NAME=PRIVATE
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0


/etc/rc.d/init.d/dhcpd (identical on both boxes):
#!/bin/sh
#
# dhcpd         This shell script takes care of starting and stopping
#               dhcpd.
#
# chkconfig: - 65 35
# description: dhcpd provide access to Dynamic Host Control Protocol.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/sbin/dhcpd ] || exit 0
[ -f /etc/dhcpd.conf ] || exit 0

RETVAL=0

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting dhcpd: "
        /sbin/route add -host 255.255.255.255 dev eth1 2> /dev/null    **[I
added this to 6.2 -- no diff]
        daemon /usr/sbin/dhcpd eth1  **[eth1 only since eth0 is a dhcp
client]
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down dhcpd: "
        killproc dhcpd
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dhcpd
        ;;
  restart|reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  status)
        status dhcpd
        RETVAL=$?
        ;;
  *)
        echo "Usage: dhcpd {start|stop|restart|status}"
        exit 1
esac

exit $RETVAL

**[end of /etc/rc.d/init.d/dhcpd]


/var/log/messages (from 6.1, working model):
Sep 13 21:20:32 RHRouter dhcpd: Internet Software Consortium DHCP Server 2.0
Sep 13 21:20:32 RHRouter dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
Inter
net Software Consortium.
Sep 13 21:20:32 RHRouter dhcpd: All rights reserved.
Sep 13 21:20:32 RHRouter dhcpd:
Sep 13 21:20:32 RHRouter dhcpd: Please contribute if you find this software
usef
ul.
Sep 13 21:20:32 RHRouter dhcpd: For info, please visit
http://www.isc.org/dhcp-c
ontrib.html
Sep 13 21:20:32 RHRouter dhcpd:
Sep 13 21:20:32 RHRouter dhcpd: Internet Software Consortium DHCP Server 2.0
Sep 13 21:20:32 RHRouter dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
Inter
net Software Consortium.
Sep 13 21:20:32 RHRouter dhcpd: All rights reserved.
Sep 13 21:20:32 RHRouter dhcpd:
Sep 13 21:20:32 RHRouter dhcpd: Please contribute if you find this software
usef
ul.
Sep 13 21:20:32 RHRouter dhcpd: For info, please visit
http://www.isc.org/dhcp-c
ontrib.html
Sep 13 21:20:32 RHRouter dhcpd:
Sep 13 21:20:32 RHRouter dhcpd: Listening on
LPF/eth1/00:a0:c9:9e:4d:38/192.168.
0.0
Sep 13 21:20:32 RHRouter dhcpd: Listening on
LPF/eth1/00:a0:c9:9e:4d:38/192.168.
0.0
Sep 13 21:20:32 RHRouter dhcpd: Sending on
LPF/eth1/00:a0:c9:9e:4d:38/192.168.
0.0
Sep 13 21:20:32 RHRouter dhcpd: Sending on   Socket/fallback/fallback-net
Sep 13 21:20:32 RHRouter dhcpd: Sending on
LPF/eth1/00:a0:c9:9e:4d:38/192.168.
0.0
Sep 13 21:20:32 RHRouter dhcpd: Sending on   Socket/fallback/fallback-net
Sep 13 21:20:33 RHRouter dhcpd: dhcpd startup succeeded  **[All OK here]
Sep 13 21:20:33 RHRouter keytable: Loading keymap:
Sep 13 21:20:33 RHRouter keytable: Loading
/usr/lib/kbd/keymaps/i386/qwerty/us.k
map.gz
Sep 13 21:20:33 RHRouter keytable: Loading system font:
Sep 13 21:20:33 RHRouter rc: Starting keytable succeeded
Sep 13 21:20:35 RHRouter sendmail: sendmail startup succeeded
Sep 13 21:20:35 RHRouter gpm: gpm startup succeeded
Sep 13 21:20:36 RHRouter xfs: xfs startup succeeded
Sep 13 21:20:36 RHRouter xfs: Warning: The directory
"/usr/X11R6/lib/X11/fonts/m
isc" does not exist.
Sep 13 21:20:36 RHRouter xfs:          Entry deleted from font path.
Sep 13 21:20:36 RHRouter xfs: Warning: The directory
"/usr/X11R6/lib/X11/fonts/1
00dpi" does not exist.
Sep 13 21:20:36 RHRouter xfs:          Entry deleted from font path.
Sep 13 21:20:36 RHRouter xfs: Warning: The directory
"/usr/X11R6/lib/X11/fonts/m
isc" does not exist.
Sep 13 21:20:36 RHRouter xfs:          Entry deleted from font path.
Sep 13 21:20:36 RHRouter xfs: Warning: The directory
"/usr/X11R6/lib/X11/fonts/T
ype1" does not exist.
Sep 13 21:20:36 RHRouter xfs:          Entry deleted from font path.
Sep 13 21:20:36 RHRouter xfs: Warning: The directory
"/usr/X11R6/lib/X11/fonts/S
peedo" does not exist.
Sep 13 21:20:36 RHRouter xfs:          Entry deleted from font path.
Sep 13 21:20:36 RHRouter linuxconf: Linuxconf final setup
Sep 13 21:20:39 RHRouter dhcpd: Internet Software Consortium DHCP Server 2.0
Sep 13 21:20:39 RHRouter dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
Inter
net Software Consortium.
Sep 13 21:20:39 RHRouter dhcpd: All rights reserved.
Sep 13 21:20:39 RHRouter dhcpd:
Sep 13 21:20:39 RHRouter dhcpd: Please contribute if you find this software
usef
ul.
Sep 13 21:20:39 RHRouter dhcpd: For info, please visit
http://www.isc.org/dhcp-c
ontrib.html
Sep 13 21:20:39 RHRouter dhcpd:
Sep 13 21:20:39 RHRouter dhcpd: Listening on
LPF/eth1/00:a0:c9:9e:4d:38/192.168.
0.0
Sep 13 21:20:39 RHRouter dhcpd: Sending on
LPF/eth1/00:a0:c9:9e:4d:38/192.168.
0.0
Sep 13 21:20:39 RHRouter dhcpd: Sending on   Socket/fallback/fallback-net
Sep 13 21:20:39 RHRouter linuxconf:     Killing /usr/sbin/dhcpd with signal
15 r
eturn 0  **[I don't know why linuxconf kills and restarts it, but all seems
OK...]
Sep 13 21:20:39 RHRouter linuxconf:     Executing: /usr/sbin/dhcpd eth1 2>&1
Sep 13 21:20:39 RHRouter linuxconf:         > Internet Software Consortium
DHCP
Server 2.0
Sep 13 21:20:39 RHRouter linuxconf:         > Copyright 1995, 1996, 1997,
1998,
1999 The Internet Software Consortium.
Sep 13 21:20:39 RHRouter linuxconf:         > All rights reserved.
Sep 13 21:20:39 RHRouter linuxconf:         >
Sep 13 21:20:39 RHRouter linuxconf:         > Please contribute if you find
this
 software useful.
Sep 13 21:20:39 RHRouter linuxconf:         > For info, please visit
http://www.
isc.org/dhcp-contrib.html
Sep 13 21:20:39 RHRouter linuxconf:         >
Sep 13 21:20:39 RHRouter linuxconf:         > Listening on
LPF/eth1/00:a0:c9:9e:
4d:38/192.168.0.0
Sep 13 21:20:39 RHRouter linuxconf:         > Sending on
LPF/eth1/00:a0:c9:9e:
4d:38/192.168.0.0
Sep 13 21:20:39 RHRouter linuxconf:         > Sending on
Socket/fallback/fallb
ack-net  **[No problems reported here, and it's still running after login]
Sep 13 21:20:39 RHRouter rc: Starting linuxconf succeeded

**[end of /var/log/messages from 6.1 (working) box]


/var/log/messages (from 6.2, broken model):
Sep 13 21:34:42 DSLRouter dhcpd: Internet Software Consortium DHCP Server
2.0
Sep 13 21:34:42 DSLRouter dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
Inte
rnet Software Consortium.
Sep 13 21:34:42 DSLRouter dhcpd: Internet Software Consortium DHCP Server
2.0
Sep 13 21:34:42 DSLRouter dhcpd: All rights reserved.
Sep 13 21:34:42 DSLRouter dhcpd:
Sep 13 21:34:42 DSLRouter dhcpd: Please contribute if you find this software
use
ful.
Sep 13 21:34:42 DSLRouter dhcpd: For info, please visit
http://www.isc.org/dhcp-
contrib.html
Sep 13 21:34:42 DSLRouter dhcpd:
Sep 13 21:34:42 DSLRouter dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
Inte
rnet Software Consortium.
Sep 13 21:34:42 DSLRouter dhcpd: All rights reserved.
Sep 13 21:34:42 DSLRouter dhcpd:
Sep 13 21:34:42 DSLRouter dhcpd: Please contribute if you find this software
use
ful.
Sep 13 21:34:42 DSLRouter dhcpd: For info, please visit
http://www.isc.org/dhcp-
contrib.html
Sep 13 21:34:42 DSLRouter dhcpd:
Sep 13 21:34:43 DSLRouter dhcpd: Listening on
LPF/eth1/00:10:4b:dd:53:61/192.168
.1.0
Sep 13 21:34:43 DSLRouter dhcpd: Listening on
LPF/eth1/00:10:4b:dd:53:61/192.168
.1.0
Sep 13 21:34:43 DSLRouter dhcpd: Sending on
LPF/eth1/00:10:4b:dd:53:61/192.168
.1.0
Sep 13 21:34:43 DSLRouter dhcpd: Sending on   Socket/fallback/fallback-net
Sep 13 21:34:43 DSLRouter dhcpd:
Sep 13 21:34:43 DSLRouter dhcpd: Sending on
LPF/eth1/00:10:4b:dd:53:61/192.168
.1.0
Sep 13 21:34:43 DSLRouter dhcpd: Sending on   Socket/fallback/fallback-net
Sep 13 21:34:43 DSLRouter dhcpd: dhcpd startup succeeded  **[All OK here]
Sep 13 21:34:44 DSLRouter keytable: Loading keymap:
Sep 13 21:34:44 DSLRouter keytable: Loading
/usr/lib/kbd/keymaps/i386/qwerty/us.
kmap.gz
Sep 13 21:34:44 DSLRouter keytable: Loading system font:
Sep 13 21:34:45 DSLRouter rc: Starting keytable succeeded
Sep 13 21:34:47 DSLRouter sendmail: sendmail startup succeeded
Sep 13 21:34:47 DSLRouter gpm: gpm startup succeeded
Sep 13 21:34:48 DSLRouter linuxconf: Linuxconf final setup
Sep 13 21:34:52 DSLRouter dhcpd: Internet Software Consortium DHCP Server
2.0
Sep 13 21:34:52 DSLRouter dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
Inte
rnet Software Consortium.
Sep 13 21:34:52 DSLRouter dhcpd: All rights reserved.
Sep 13 21:34:52 DSLRouter dhcpd:
Sep 13 21:34:52 DSLRouter dhcpd: Please contribute if you find this software
use
ful.
Sep 13 21:34:52 DSLRouter dhcpd: For info, please visit
http://www.isc.org/dhcp-
contrib.html
Sep 13 21:34:52 DSLRouter dhcpd:
Sep 13 21:34:52 DSLRouter dhcpd: Listening on
LPF/eth1/00:10:4b:dd:53:61/192.168
.1.0
Sep 13 21:34:52 DSLRouter dhcpd: Sending on
LPF/eth1/00:10:4b:dd:53:61/192.168
.1.0
Sep 13 21:34:52 DSLRouter dhcpd: No subnet declaration for eth1 (0.0.0.0).
**[Where is 0.0.0.0 coming from????]
Sep 13 21:34:52 DSLRouter dhcpd: Please write a subnet declaration for the
netwo
rk segment to
Sep 13 21:34:52 DSLRouter dhcpd: which interface eth1 is attached.
Sep 13 21:34:52 DSLRouter dhcpd: exiting.  **[The first breaking point]
Sep 13 21:34:52 DSLRouter linuxconf:     Killing /usr/sbin/dhcpd with signal
15
return 0
Sep 13 21:34:52 DSLRouter linuxconf:     Executing: /usr/sbin/dhcpd eth1
eth1 2>
&1  **[Why two 'eth1's on this line? -- this may be the cause?]
Sep 13 21:34:52 DSLRouter linuxconf:         > Internet Software Consortium
DHCP
 Server 2.0
Sep 13 21:34:52 DSLRouter linuxconf:         > Copyright 1995, 1996, 1997,
1998,
 1999 The Internet Software Consortium.
Sep 13 21:34:52 DSLRouter linuxconf:         > All rights reserved.
Sep 13 21:34:52 DSLRouter linuxconf:         >
Sep 13 21:34:52 DSLRouter linuxconf:         > Please contribute if you find
thi
s software useful.
Sep 13 21:34:52 DSLRouter linuxconf:         > For info, please visit
http://www
.isc.org/dhcp-contrib.html
Sep 13 21:34:52 DSLRouter linuxconf:         >
Sep 13 21:34:52 DSLRouter linuxconf:         > Listening on
LPF/eth1/00:10:4b:dd
:53:61/192.168.1.0
Sep 13 21:34:52 DSLRouter linuxconf:         > Sending on
LPF/eth1/00:10:4b:dd
:53:61/192.168.1.0
Sep 13 21:34:52 DSLRouter linuxconf:         > No subnet declaration for
eth1 (0
.0.0.0).  **[Here we go again]
Sep 13 21:34:52 DSLRouter linuxconf:         > Please write a subnet
declaration
 for the network segment to
Sep 13 21:34:52 DSLRouter linuxconf:         > which interface eth1 is
attached.
Sep 13 21:34:52 DSLRouter linuxconf:         > exiting.  **[c'ya!  If I
later login and start dhcpd, all is OK (???)]
Sep 13 21:34:52 DSLRouter linuxconf:         * return 1
Sep 13 21:34:54 DSLRouter rc: Starting linuxconf succeeded


bd

=====================
Brad Doster
Insight Network Solutions
925-335-9510
www.InsightNetSolutions.net




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to