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

Bug 70018

Summary: net.eth0 of baselayout-1.11.5 fails to bring up dhcp interfaces
Product: Gentoo Linux Reporter: Dead Schorsch <spamlover>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED FIXED    
Severity: major CC: tsdh
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dead Schorsch 2004-11-04 01:51:40 UTC
I cleaned up my /etc/modules.autoload.d/kernel-2.6 by moving the NIC driver (tg3) to an appropiate "alias" file in /etc/modules.d/network. It reads:

alias eth0 tg3

Although I see this module to be loaded when /etc/init.d/net.eth0 starts, the service itself failes with the following message:

 * Starting eth0
 *    Cannot default to dhcp as there is no dhcp module loaded
 *    No configuration for eth0 

The file /etc/conf.d/net is empty and yes, it should use dhcpcd then. dhcpcd is installed. "ifconfig eth0 up && dhcpcd eth0" works flawless.


Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/net.eth0 start
2.
3.

Actual Results:  
 * Starting eth0
 *    Cannot default to dhcp as there is no dhcp module loaded
 *    No configuration for eth

Expected Results:  
Bring up eth0, using dhcpcd

Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.9
-gentoo-r2 i686)
=================================================================
System uname: 2.6.9-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dv
ipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config
/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox userpriv"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror
s.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/
gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi acpi4linux aim alsa antlr apache2 apm audiofile avi berkdb bitmap-fo
nts bluetooth bonobo cddb cdr chroot crypt cups devfs26 doc dvd encode esd ether
eal evo f77 fam foomaticdb gda gdbm gif gimp gimpprint glade gnome gpm gtk gtk2
gtkhtml guile ieee1394 imagemagick imlib irda java jpeg ldap libg++ libwww mad m
box mikmod mmx motif mozilla mpeg mpeg4 msn ncurses nls nptl odbc oggvorbis open
gl pam pcmcia pda pdflib perl png postgres ppds python quicktime readline samba
scanner sdl slang sox spell sse ssl svga tcltk tcpd tetex truetype usb vanilla x
86 xinerama xml2 xmms xv zlib"
Comment 1 Christopher Eineke 2004-11-04 06:12:44 UTC
Same behaviour here.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2004-11-04 08:15:00 UTC
Could you add RC_VERBOSE=yes to /etc/conf.d/net and postup the output again please?
Comment 3 Andrew Williams 2004-11-04 08:31:28 UTC
I'd just like to say the same thing is now happening to me - and I haven't changed anything.

I did as Roy Marples suggested and I get:

 * Starting eth0
 *    Loading networking modules for eth0
 *       modules: ifconfig
 *          ifconfig provides interface
 *    Cannot default to dhcp as there is no dhcp module loaded
 *    No configuration for eth0                                           [ !! ]

Andrew
Comment 4 Andrew Williams 2004-11-04 08:37:30 UTC
Well, I upgraded gawk this morning. Could that be it?

Andrew
Comment 5 Roy Marples (RETIRED) gentoo-dev 2004-11-04 09:22:53 UTC
I doubt gawk would break that. It looks like dhcpcd is *not* installed or not where I expect it to be ..... so where is your dhcpcd installed?

# which dhcpcd
/sbin/dhcpcd
Comment 6 Dead Schorsch 2004-11-04 09:24:54 UTC
DLD8-FBLK31J ~ # RC_VERBOSE=yes /etc/init.d/net.eth0 start
 * Starting eth0
 *    Loading networking modules for eth0
 *       modules: iwconfig essidnet ifconfig
 *          iwconfig provides wireless
 *          ifconfig provides interface
 *    Wireless extensions not found for eth0
 *    Cannot default to dhcp as there is no dhcp module loaded
 *    No configuration for eth0 
Comment 7 Dead Schorsch 2004-11-04 09:28:31 UTC
No, dhcpcd is installed at /usr/sbin. After sym-linking it to /sbin, the behaviour changes to 

DLD8-FBLK31J ~ # RC_VERBOSE=yes /etc/init.d/net.eth0 start
 * Starting eth0
 *    Loading networking modules for eth0
 *       modules: iwconfig essidnet ifconfig dhcpcd
 *          iwconfig provides wireless
 *          ifconfig provides interface
 *          dhcpcd provides dhcp
 *    Wireless extensions not found for eth0
 *    Bringing up eth0
 *       Configuration not set for eth0 - assuming dhcp
 *       eth0 dhcp
 *          Running dhcpcd ...                                            [ ok ]  *          eth0 received address 192.168.0.114

and interface goes up. But since I did not modify anything in the dhcpcd ebuild, I guess dhcpcd is in place it should be.
Comment 8 SpanKY gentoo-dev 2004-11-04 10:08:05 UTC
use dhcpcd -r5 or -r7 but not -r6
Comment 9 Roy Marples (RETIRED) gentoo-dev 2004-11-04 10:49:30 UTC
*** Bug 70032 has been marked as a duplicate of this bug. ***
Comment 10 Dead Schorsch 2005-10-18 05:51:22 UTC
How come sometimes new ebuilds are not respected?