Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149017

Summary: dhcp service will initialise too early
Product: Gentoo Linux Reporter: Lars Langhans <lars.langhans>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.