Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCPD starting before ETH0 gives error.

Reply
Thread Tools Display Modes

DHCPD starting before ETH0 gives error.

 
 
edavid3001@gmail.com
Guest
Posts: n/a

 
      11-18-2005, 03:13 PM
DHCPD is configured to only listen on eth0.

When it starts at boot time it states that there is no subnet for
0.0.0.0 defined in my dhcpd.conf file, so it exits.

This is because DHCPD is starting up at the same time as ETH0, and ETH0
is not yet up on the proper network.

If I start DHCPD after boot, it works just fine.

So the question is how to properly setup DHCPD so it starts on boot.

Should I define the subnet 0.0.0.0?

subnet 0.0.0.0 netmask 255.255.255.0 { }

Should I set DHCPD not to autostart, but have it start in rc.local?

What's the best way to handle this?

Thanks;

Edwin.

 
Reply With Quote
 
 
 
 
Baho Utot
Guest
Posts: n/a

 
      11-18-2005, 11:00 PM
On Fri, 18 Nov 2005 08:13:03 -0800, edavid3001 shouted Hoy......

> DHCPD is configured to only listen on eth0.
>
> When it starts at boot time it states that there is no subnet for
> 0.0.0.0 defined in my dhcpd.conf file, so it exits.
>
> This is because DHCPD is starting up at the same time as ETH0, and ETH0
> is not yet up on the proper network.
>
> If I start DHCPD after boot, it works just fine.
>
> So the question is how to properly setup DHCPD so it starts on boot.
>
> Should I define the subnet 0.0.0.0?
>
> subnet 0.0.0.0 netmask 255.255.255.0 { }
>
> Should I set DHCPD not to autostart, but have it start in rc.local?
>
> What's the best way to handle this?
>
> Thanks;
>
> Edwin.


I would start it from /etc/rc.d/rc3.d at the proper time.
That is after the network has come up, say some place about S30ish.
The network on my scratch built system starts at S20. YMMV.

--
Some of us cynics would say that playing games is what Microsoft is
good at; and that people who use Linux have real work to do.

Tayo'y Mga Pinoy

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      11-18-2005, 11:44 PM
Baho Utot <baho-(E-Mail Removed)> writes:

>On Fri, 18 Nov 2005 08:13:03 -0800, edavid3001 shouted Hoy......


>> DHCPD is configured to only listen on eth0.
>>
>> When it starts at boot time it states that there is no subnet for
>> 0.0.0.0 defined in my dhcpd.conf file, so it exits.


That is the default route.

>>
>> This is because DHCPD is starting up at the same time as ETH0, and ETH0
>> is not yet up on the proper network.


So, put in a delay in starting up dhcpd. Ie, put in a test to see if
default route is defined until route -n|grep '^0.0.0.0 ' ;do sleep 1; done
assuming of course that network is started before dhcpcd. ( you might want
to put a count in there so it would not hang waiting for default route
forever)


>>
>> If I start DHCPD after boot, it works just fine.
>>
>> So the question is how to properly setup DHCPD so it starts on boot.
>>
>> Should I define the subnet 0.0.0.0?
>>
>> subnet 0.0.0.0 netmask 255.255.255.0 { }


That makes no sense whatsoever. There exists no subnet which starts 0.0.0.


>>
>> Should I set DHCPD not to autostart, but have it start in rc.local?


Well it is started somewhere. Probably in /etc/rc3.d
Give it a higher number.
>>
>> What's the best way to handle this?
>>
>> Thanks;
>>
>> Edwin.


>I would start it from /etc/rc.d/rc3.d at the proper time.
>That is after the network has come up, say some place about S30ish.
>The network on my scratch built system starts at S20. YMMV.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 not starting on boot -- debina sarge Steve Lefevre Linux Networking 1 10-30-2004 08:27 PM
snmpd error on starting... Laurent Linux Networking 0 05-10-2004 06:27 PM
hangs on starting eth0 Geoff Linux Networking 12 12-31-2003 02:26 AM
Error starting RAS W2003K server Dvae c Windows Networking 0 12-30-2003 09:50 AM
Error Starting Program Bee Windows Networking 0 12-13-2003 09:14 PM



1 2 3 4 5 6 7 8 9 10 11