Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178400 - udev renames valid ethX (eth1 -> eth4)
Summary: udev renames valid ethX (eth1 -> eth4)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-05-13 18:04 UTC by Sergey Belyashov
Modified: 2007-05-13 20:03 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2007-05-13 18:04:48 UTC
I have Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01).
Kernel gentoo-sources-2.6.20-r7. I compile e1000 as module.
When I load this module in dmesg I see:

ACPI: PCI Interrupt 0000:04:02.0[A] -> GSI 30 (level, low) -> IRQ 30
e1000: 0000:04:02.0: e1000_probe: (PCI-X:133MHz:64-bit) 00:07:e9:1b:f2:e4
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection

But "ifconfig eth1 up" says: "eth1: unknown interface: No such device"
I check in /sys/class/net/ and found lo/ eth0/ and eth4/ !!!! I unload module, kill udevd, and load module again: ifconfig eth1 up - and eth1 works...

Reproducible: Always

Steps to Reproduce:
1. setup 82545EM Gigabit Ethernet Controller (PCI-X:133MHz:64-bit)
2. build kernel (2.6.20-gentoo-r7) driver (e1000)
3. udevd must be runned
4. modprobe e1000
5. ls /sys/class/net/
Actual Results:  
lo eth0 eth4

Expected Results:  
lo eth0 eth1

Portage (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r7 x86_64)
System uname: 2.6.20-gentoo-r7 x86_64 AMD Opteron(tm) Processor 244
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 13 May 2007 16:50:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
CFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /etc/iproute2/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
LINGUAS="en_GB ru"
MAKEOPTS="-s -j3"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
USE="acl amd64 apache2 berkdb bitmap-fonts bzip2 cdrw cli codeconv cracklib crypt ctype cups curl dri dvdrw fontconfig foomaticdb fortran ftp gd gpm graphviz iconv imap isdnlog jpeg jpeg2k ldap libclamav libg++ libwww logrotate maildir midi mpeg mysql ncurses nls nptl nptlonly nvidia oav pam pcre perl png ppds pppd python readline reflection sasl session slang spl sqlite ssl swat syslog tcpd tiff truetype truetype-fonts type1-fonts unicode usb utf8 wmf xinetd xml xorg xpm zlib" 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 18:08:32 UTC
Attach /etc/udev/rules.d/70-persistent-net.rules here and post your udev version.
Comment 2 Sergey Belyashov 2007-05-13 18:23:33 UTC


# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x10de:0x00df (forcedeth)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="04:4b:80:80:80:03", NAME="eth0"

# Firewire device 00000000000147e0)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:00:00:00:00:01:47:e0", NAME="eth1"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:80:48:3f:e4:f9", NAME="eth2"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:07:e9:1b:f2:36", NAME="eth3"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:07:e9:1b:f2:e4", NAME="eth4"

I think, that it is problem in this file. :-) Is it right than udev saves names of interfaces?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 19:48:43 UTC
(In reply to comment #2)
> I think, that it is problem in this file. :-) Is it right than udev saves names
> of interfaces?

Yeah, it's intended so that your interfacec don't change names on every reboot. If the file doesn't match what you'd like udev to do, then edit it as needed, or delete the offending stuff. 
Comment 4 Sergey Belyashov 2007-05-13 20:03:49 UTC
Yes I already do it. But this problem cause me to kill many time to understand that it is not broken network card...