|
From: <no...@so...> - 2002-02-10 17:09:27
|
Bugs item #512772, was opened at 2002-02-04 06:58 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=410643&aid=512772&group_id=34096 Category: Configuration / Scripts Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Heiko Zuerker (smiley73) >Assigned to: Heiko Zuerker (smiley73) Summary: dhcpd and more then 1 interface Initial Comment: From the forum on the HP: Hi. Just noticed while seting up a dhcpd server on more than one interface, the following in dhcpd. loadproc $DAEMON -lf /etc/dhcpd.leases -q $DEVICE This doesn't work because it should be: $DAEMON -lf /etc/dhcpd.leases -q eth1 eth2 Ie one demon but with all interfaces specified, at least thats the way it appears to work?!?. I've patched my dhcpd to look like this which works. You may want to include this in the next release or some variation on it? DEVICES="" for interface in $(ls /etc/sysconfig/nic/ifcfg*) do source $interface if [ "$DHCP" == server ]; then if [ "$ONBOOT" == yes ] then DEVICES="$DEVICE $DEVICES" fi fi done if [ "$DEVICES" != "" ] then ....etc etc Just replace the $DEVICE with $DEVICES and it works fine. Regards Richard ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=410643&aid=512772&group_id=34096 |