[GUTSY] LAN cards detected as eth0 and eth1, but eth0 and eth1 wants only to bring up as eth2 and eth3

Bug #144263 reported by mystic
2
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned
Nominated for Gutsy by mystic

Bug Description

I installed today GUTSY from netboot (kernel 2.6.22.12-generic) in text-only mode to test on a server.

This server worked flawlessly with Ubuntu 6.06 LTS server (dapper), and lan cards are very generic and was recognized without any problem in the netboot installation of gutsy.

This is /var/log/syslog on booting:

Sep 23 20:45:03 nettuno kernel: [ 23.033542] 8139too Fast Ethernet driver 0.9.28
Sep 23 20:45:03 nettuno kernel: [ 23.163106] sis900.c: v1.08.10 Apr. 2 2006

Sep 23 20:45:03 nettuno kernel: [ 23.759205] ACPI: PCI Interrupt 0000:00:05.0[A] -> GSI 17 (level, low) -> IRQ 19
Sep 23 20:45:03 nettuno kernel: [ 23.759524] eth0: RealTek RTL8139 at 0xf8836000, 00:e0:4c:5a:cb:fe, IRQ 19
Sep 23 20:45:03 nettuno kernel: [ 23.759527] eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Sep 23 20:45:03 nettuno kernel: [ 23.763322] 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Sep 23 20:45:03 nettuno kernel: [ 23.763484] PCI: Enabling device 0000:00:03.3 (0100 -> 0102)

Sep 23 20:45:03 nettuno kernel: [ 23.867094] ACPI: PCI Interrupt 0000:00:04.0[A] -> GSI 19 (level, low) -> IRQ 21
Sep 23 20:45:03 nettuno kernel: [ 23.868449] 0000:00:04.0: SiS 900 on Foxconn 661 7MI transceiver found at address 1.
Sep 23 20:45:03 nettuno kernel: [ 23.879115] 0000:00:04.0: Using transceiver found at address 1 as default
Sep 23 20:45:03 nettuno kernel: [ 23.879897] eth1: SiS 900 PCI Fast Ethernet at 0x2100, IRQ 21, 00:19:d1:86:18:77.

Ok... all seems to be ok, now let's watch lspci:

00:00.0 Host bridge: Silicon Integrated Systems [SiS] 662 Host (rev 01)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS AGP Port (virtual PCI-to-PCI bridge)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS964 [MuTIOL Media IO] (rev 36)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
00:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:1f.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter (rev 04)

It's ok, ethernet controllers are recognized and modules loaded flawlessly! But now let's look at lshw:

        *-network:0 DISABLED
             description: Ethernet interface
             product: SiS900 PCI Fast Ethernet
             vendor: Silicon Integrated Systems [SiS]
             physical id: 4
             bus info: pci@0000:00:04.0
             logical name: eth3
             version: 91
             serial: 00:19:d1:86:18:77
             size: 100MB/s
             capacity: 100MB/s
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=sis900 driverversion=v1.08.10 Apr. 2 2006 duplex=full ip=10.0.0.1 latency=32 link=yes maxlatency=11 mingnt=52 module=sis900 multicast=yes port=MII speed=100MB/s
        *-network:1 DISABLED
             description: Ethernet interface
             product: RTL-8139/8139C/8139C+
             vendor: Realtek Semiconductor Co., Ltd.
             physical id: 5
             bus info: pci@0000:00:05.0
             logical name: eth2
             version: 10
             serial: 00:e0:4c:5a:cb:fe
             size: 10MB/s
             capacity: 100MB/s
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=32 link=no maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=10MB/s

Please watch on "logical name" label. eth0 and eth1 are not used, but system assign my network cards as eth2 and eth3! And this is the output if I try to bring up eth0 and eth1 interfaces:

root@nettuno:~# ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device

root@nettuno:~# ifconfig eth1 up
eth1: ERROR while getting interface flags: No such device

Strange thing, doesn't it? On my Ubuntu 6.06 LTS eth0 was the SIS internal card, and eth1 was the PCI 8139D card. On GUTSY kernel detects 8139D to eth0 and SIS card to eth1, but load them as eth2 and eth3. How can i fix it?

Revision history for this message
mystic (matteo-knob) wrote :

Seems to be an /etc/iftab issue, but it's quite strange to find it out on new fresh GUTSY installation

Revision history for this message
Igor Kolker (igor-kolker) wrote :

new to Ubuntu so whats /etc/iftab?

I just did a clean Gutsy install on a Thinkpad T21 of server, during install it found the NIC as eth0 but boots with eth1.

        *-network
             description: Ethernet interface
             product: 82557/8/9 Ethernet Pro 100
             vendor: Intel Corporation
             physical id: 3
             bus info: pci@0000:00:03.0
             logical name: eth1
             version: 09
             serial: 00:10:a4:84:28:0e
             size: 100MB/s
             capacity: 100MB/s
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.17-k4-NAPI duplex=full firmware=N/A ip=10.0.90.143 latency=66 link=yes maxlatency=56 mingnt=8 module=e100 multicast=yes port=MII speed=100MB/s

00:03.0 Ethernet controller: Intel Corporation 82557/8/9 Ethernet Pro 100 (rev 09)

[ 15.218862] e100: eth0: e100_probe: addr 0xe8120000, irq 11, MAC addr 00:10:A4:84:28:0E

I also see #47990, which seems to be closed as iftab issue also but doesnt explain. I dont have a iftab

root@T21:~# ls -la /etc/iftab
ls: /etc/iftab: No such file or directory
root@T21:~# uname -a
Linux T21 2.6.22-12-server #1 SMP Sun Sep 23 18:45:59 GMT 2007 i686 GNU/Linux
root@T21:~#

Revision history for this message
Igor Kolker (igor-kolker) wrote :

n/m figured it from 145382.

Revision history for this message
Jan Kunder (jan-kunder) wrote :

Hi Mystic / mystic::
Look at my hints/workarounds here:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/145382

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.