Your dhcpd.conf entry for the 192.168.2.0 subnet looks fine. Given that, the
problem is probably that dhcpd is starting before whatever interface network
192.168.2.0 is on (I infer eth2 from what you say) gets configured. At the
point at which dhcpd starts, eth2 is probably (implicitly) network
0.0.0.0/something, and you have no subnet declaration for that bogus
network. That it works fine from a console restart reinforces this
interpretation of the symptom you describe.
Since you tell us so little about your setup (not even which LEAF version
you are using), it's not really possible to be more specific than that.
At 09:35 AM 5/15/02 -0700, Eric House wrote:
>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"
--
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------
_______________________________________________________________
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