I want dhcpd to serve both eth1 and eth2.  My dhcpd.conf looks like
this, with the second subnet changing '1' to '2' for everything but
the name server:

dynamic-bootp-lease-length 604800;
max-lease-time 1209600;

subnet 192.168.1.0 netmask 255.255.255.0 {
    option routers 192.168.1.254;
    option domain-name "private.network";
    option domain-name-servers 192.168.1.254;
    range 192.168.1.1 192.168.1.199;
}

subnet 192.168.2.0 netmask 255.255.255.0 {
    option routers 192.168.2.254;
    option domain-name "dmz.network";
    option domain-name-servers 192.168.1.254;
    range 192.168.2.1 192.168.2.199;
}

When the router boots, I get error messages from dhcpd (on the console
and in syslog) telling me I need a subnet declaration for eth2 in my
dhcpd.conf file.  Oddly, if after I get a prompt I run
'/etc/init.d/dhcpd restart' (without changing anything) I don't get
those errors. 

(dhcpd works only intermitently on eth2, but that may be shorewall
problems.)

I have this in /etc/init.d/dhcpd, BTW:

# Add interfaces, separated by a space (ie "eth0 eth1")
# Typically your internal interface: eth1 for cable modems/DSL, or 
# eth0 for ppp/dialup
ifs="eth1 eth2"

Thanks,

--Eric House

******************************************************************************
* From the desktop of: Eric House, [EMAIL PROTECTED]                            *
*    Crosswords 4.0 for PalmOS is out!: <http://www.peak.org/~fixin/xwords>  *
******************************************************************************


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]

------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to