Since I boosted my Laptop by SSD, in some cases (not reproducible) the network interfases eth0 (LAN) and eth1 (WLAN) are interchanged. The "dmesg" says [ 6.646923] e1000e 0000:00:19.0 eth1: (PCI Express:2.5GT/s:Width x1) d4:be:d9:32:c8:5f [ 6.646926] e1000e 0000:00:19.0 eth1: Intel(R) PRO/1000 Network Connection [ 6.646978] e1000e 0000:00:19.0 eth1: MAC: 10, PHY: 11, PBA No: 3041FF-0FF ... [ 8.066574] eth0: Broadcom BCM4359 802.11 Hybrid Wireless Controller 5.100.82.112 I use my old generated /etc/udev/rules.d/70-persistent-net.rules but there seems to be ignored. # PCI device 0x8086:0x1502 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d4:be:d9:32:c8:5f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x4359 (wl) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e0:06:e6:02:31:d1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" Reproducible: Always Steps to Reproduce: Not reproducible Actual Results: sometimes is WLAN eth0 and LAN eth1, mostly eth1 is WLAN and eth0 is LAN Expected Results: The eth* shold be fixed. emerge --info Portage 2.2.0_alpha166 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64) ================================================================= System uname: Linux-3.7.10-gentoo-x86_64-Intel-R-_Core-TM-_i7-2760QM_CPU_@_2.40GHz-with-gentoo-2.1 KiB Mem: 8065780 total, 7093940 free KiB Swap: 4194300 total, 4194300 free Timestamp of tree: Tue, 12 Mar 2013 00:45:01 +0000 ld GNU ld (GNU Binutils) 2.22 app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j10" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/myoverlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi aes alsa amd64 aperfmperf apic arat arch_perfmon avx berkdb bluetooth branding bts bzip2 cairo cdda cdr clflush cli cmov consolekit constant_tsc cracklib crypt cups cx16 cx8 cxx dbus de device-mapper dri ds_cpl dtes64 dts dvd dvdr emboss encode epb ept est exif fam firefox flac flexpriority fortran fpu fxsr g3dvl gdbm gif gpm gstreamer gtk hddtemp ht iconv ida jpeg lahf_lm lcms ldap libcaca libkms libnotify lm lm_sensors mad mca mce mmx mng modules monitor mp3 mp4 mpeg msr mtrr mudflap multilib ncurses nls nonstop_tsc nopl nptl nx ogg opengl openmp pae pam pango pat pbe pcid pclmulqdq pcre pdcm pdf pebs pge pln png pni policykit popcnt ppds pse pse36 pts qt3support qt4 rdtscp readline rep_good samba sdl sep session smx spell ss sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syscall tcpd tiff tm tm2 tpr_shadow truetype tsc tsc_deadline_timer udev udisks unicode upower usb vme vmx vnmi vorbis vpid wifi wxwidgets x264 x2apic xcb xinerama xml xsave xsaveopt xtopology xtpr xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart gensplash lvm plymouth syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en ru" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p" USERLAND="GNU" VIDEO_CARDS="nvidia intel nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
This isn't an OpenRC issue. It looks like your network card drivers are built into the kernel and you are trying to make the cards have specific names in the eth* name space. This has many issues. Please look at the information in the bug this is a duplicate of, as well as the wiki page that bug refers to. If you want to assign persistent names to your cards other than the predictable interface names, you should use names other than eth* names. *** This bug has been marked as a duplicate of bug 453494 ***
(In reply to comment #1) > This isn't an OpenRC issue. It looks like your network card drivers are > built into the kernel and you are trying to make the cards have specific > names in the eth* name space. This has many issues. Please look at the > information in the bug this is a duplicate of, as well as the wiki > page that bug refers to. > If you want to assign persistent names to your cards other than the > predictable interface names, you should use names other than eth* names. (option 1) right, something meaningful like network0, network1, or just net0, net5, ... or... (option 2) removal of the old 70-persistent-net.rules and the "empty" 80-net-name-slot.rules from /etc/udev/rules.d/ makes udev use it's own default thats the /lib/udev/rules.d/80-net-name-slot.rules, which enables the predictable names: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames # udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null replace <ifname> with something like eth0, and you get information before booting what names will be used this is mentioned in the udev news item, as well as postinst message of 197-r8 and even better handling in 198-r1, and the bug this is duplicated to, is also mentioned in the gentoo wiki and the news item just clarifying ;)