Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149017 - dhcp service will initialise too early
Summary: dhcp service will initialise too early
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-24 23:25 UTC by Lars Langhans
Modified: 2006-09-28 23:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Langhans 2006-09-24 23:25:02 UTC
Hi all,
I have 2 network cards in my computer, net.eth0 (wired) and net.ra0 (wireless).
I also use dhcpd service to give IP numbers automatically to all my computers. As long as I have only one network card, all works very well. After I insert and set up the second card, the problems began.

I don't get an IP address from the dhcp server, now I know the problem. /etc/init.d/dhcpd depends on "net" but is start short after /etc/init.d/net.ra0 is initialised. IMHO too early. 

My boot sequence seems to be:
...
/etc/init.d/net.ra0
/etc/init.d/dhcpd
/etc/init.d/net.eth0
...

And because dhcpd is initialised before net.eth0 is, it only snoops on net.ra0 and not on net.eth0.

My workaround is to remove dhcpd from runlevel (default) startup and start it by hand in /etc/conf.d/local.start after the whole computer has boot up right. Now dhcp snoops on net.ra0 and net.eth0. I get IP addresses again.

IMHO there seems to be a dependency problem. If a service "need net" all network cards should have been initialised (only IMHO).

Regards
Lars
Comment 1 Lars Langhans 2006-09-24 23:30:26 UTC
On point, baselayout-1.12.5.
The rest will follow.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-09-24 23:55:19 UTC
RC_STRICT_NET_CHECKING=yes in /etc/conf.d/rc
Any other value will have the effect you have shown.
Comment 3 Lars Langhans 2006-09-28 23:19:14 UTC
Hi Roy,
big thanks, works for me now.

I try to close this bug.