Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327911 - [802.11x] net.eth0 is bring up (stay inactive) but i manual dhcpcd needed
Summary: [802.11x] net.eth0 is bring up (stay inactive) but i manual dhcpcd needed
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 12:09 UTC by niogic
Modified: 2010-07-20 00:03 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 niogic 2010-07-12 12:09:36 UTC
I have configured /etc/conf.d/net .. 
rc-update add net.eth0 default
net.eth0 is bring up but i still need to manually call dhcpcd manually afterwards!
net.eth0 status says "inactive"

$ cat /etc/conf.d/net
modules_eth0="wpa_supplicant dhcpcd"
wpa_supplicant_eth0="-Dwired"
config_eth0="dhcp"

Yea, it's a WPA-over-ethernet (802.11x)..

Testing ~x86 system:
# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Celeron-R-_M_processor_900MHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 11 Jul 2010 15:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -pipe -fno-ident -fomit-frame-pointer -frename-registers -fweb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=pentium-m -pipe -fno-ident -fomit-frame-pointer -frename-registers -fweb"
DISTDIR="/mnt/schedasd/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
PKGDIR="/mnt/schedasd/portage/package"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/schedasd/portage"
PORTDIR_OVERLAY="/usr/local/portage/my-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cddb cli consolekit cracklib crypt cups curl custom-cflags custom-cxxflags cxx dbus djvu dri dts dv dvb dvd emboss encode evo exif expat fam ffmpeg fftw firefox flac fortran gdbm gdu gif glitz gmp gnome gnome-keyring gpm gstreamer gtk hal iconv imlib inotify jpeg lame latex lcms libnotify lua mad matroska mikmod mmx mng modules mp3 mp4 mpeg mudflap musepack nautilus ncurses nls nptl nptlonly ogg openal opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline reflection samba sdl session speex spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff timidity tk truetype unicode usb v4l2 vim-syntax vorbis wavpack win32codecs x264 x86 xcb xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="auth_digest authn_file authz_groupfile authz_host dav dav_fs dir mime" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i915 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 niogic 2010-07-12 12:11:47 UTC
What I have to to to bring up the internet:

(after boot)
# ifconfig 
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:153 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000 
          RX bytes:12450 (12.1 KiB)  TX bytes:2106 (2.0 KiB)
          Memory:fbfc0000-fc000000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2400 (2.3 KiB)  TX bytes:2400 (2.3 KiB)

# /etc/init.d/net.eth0 status
 * status: inactive
# dhcpcd eth0
dhcpcd[1878]: version 5.2.6 starting
dhcpcd[1878]: eth0: broadcasting for a lease
dhcpcd[1878]: eth0: offered 10.x.x.x from 10.x.x.x
dhcpcd[1878]: eth0: acknowledged 10.x.x.x.x from 10.x.x.x.x
dhcpcd[1878]: eth0: checking for 10.x.x.x.x
dhcpcd[1878]: eth0: leased 10.x.x.x.x for 3600 seconds
dhcpcd[1878]: forked to background, child pid 1914
Comment 2 niogic 2010-07-12 12:19:54 UTC
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 * Bringing up interface eth0
 *   Starting wpa_supplicant on eth0 ...
 [ ok ]
 *   Starting wpa_cli on eth0 ...
 [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.eth0 has started, but is inactive
 * Activating swap devices ...
 [ ok ]
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-19 22:24:11 UTC
I don't see a bug here. Could you possible go figure out how to configure this properly on our forums <http://forums.gentoo.org> or IRC <irc://irc.gentoo.org/gentoo-it>. If you then find something is actually wrong with the networking scripts, then feel free to point it out specifically and reopen this bug report.
Comment 4 niogic 2010-07-20 00:03:48 UTC
You don't see a bug?

config_eth0="dhcp"

But there's no dhcp.
I have to manually call it like if that line wasn't there.

A config line is supposed to do something.