Gordon Messmer <[EMAIL PROTECTED]>

>A friend of mine, running Red Hat linux 6.2 is having a problem with
>netconf.  His linux server has three interfaces, one connected to an
>external DSL modem, and two more connected to machines inside his home.
>
>The dhcpd.conf is properly set up, and if I start dhcpd from the init
>script, then everything works as it should.  dhcpd starts, offering no
>addresses on the external interface, and the proper addresses on each of
>the internal NICS.  However, if the system reboots, then when it comes
>into runlevel 3, dhcpd starts (as it should), and then when linuxconf
>runs, linuxconf shuts down the running dhcpd server, and starts dhcpd with
>a command line like:
>dhcpd eth0 eth1
>
>This prevents dhcpd from answering queries on eth2 after reboot.  Does
>anyone know under what circumstances netconf (part of linuxconf) restarts
>dhcpd?  Or how it determines what command line arguments are
>appropriate?  I don't see this behavior on any other servers running Red
>Hat linux and dhcpd.

My first thought would be "don't run Linuxconf", but I realize that doesn't 
help much.  Although it appears to be improving, I still find it doing 
things I don't want, not doing things I do want and doing other things for 
reasons unknown.

I don't know why linuxconf/netconf would be doing this as I don't use it on 
my production servers, but what you may want to do is edit dhcpd's startup 
script ( /etc/rc.d/init.d/dhcpd ) like so:

case "$1" in
   start)
         # Start daemons.
         echo -n "Starting dhcpd: "
         daemon /usr/sbin/dhcpd eth0  <--CHANGE THIS LINE
         echo
         touch /var/lock/subsys/dhcpd
         ;;

In the above script, add the ethernet devices that dhcpd should listen 
on.  I *don't* know if linuxconf/netconf will (a) modify this line later or 
(b) still stop/restart dhcpd with incorrect interfaces.

-Eric


Eric Sisler
Library Computer Technician
Westminster Public Library
Westminster, CO, USA
[EMAIL PROTECTED]

Linux - don't fear the Penguin.
Want to know what we use Linux for?
Visit http://gromit.westminster.lib.co.us/linux



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

Reply via email to