network interface names changed from eth0 to eth1

Bug #35576 reported by Keywan Tonekaboni
6
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I didn't changed the hardware (it's an ibook), but the since I updated from breezy to dapper the names of the interfaces changed and eth0 is empty.

My ethernet card (sungem) moved from eth0 to eth1 and my wlan-card (bcm43xx) moved from eth1 to eth2.

I have this problem also with a self-built kernel (2.6.15), which works fine with breezy. Maybe this isn't a kernel problem, but I have no idea where to fill this bug better.

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

same here. I have i386.

I think the problem is that /etc/iftab has the wrong Mac-Adress. It was auto generated during dist-upgrade from breezy here.

$ cat /etc/iftab
# This file assigns persistent names to network interfaces. See iftab(5).
eth0 mac 00:80:c8:fa:e1:18

$ ifconfig
eth1 Protokoll:Ethernet Hardware Adresse 00:0B:6A:BB:8E:ED

These Mac Adresses do not match.
I will now test if it works, when they are the same.

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

After entering the right Mac adress in /etc/iftab it works.

$ ifconfig
eth0 Protokoll:Ethernet Hardware Adresse 00:0B:6A:BB:8E:ED

Changed in linux-image-2.6.15-18-powerpc:
status: Unconfirmed → Confirmed
Revision history for this message
x (xk2c-deactivatedaccount) wrote :

I have talked with Keywan Najafi Tonekaboni offlist.

We both used:
$ locale
> LANG=de_DE.UTF-8
> LANGUAGE=de_DE.UTF-8
> LC_CTYPE="de_DE.UTF-8"
> LC_NUMERIC="de_DE.UTF-8"
> LC_TIME="de_DE.UTF-8"
> LC_COLLATE="de_DE.UTF-8"
> LC_MONETARY="de_DE.UTF-8"
> LC_MESSAGES="de_DE.UTF-8"
> LC_PAPER="de_DE.UTF-8"
> LC_NAME="de_DE.UTF-8"
> LC_ADDRESS="de_DE.UTF-8"
> LC_TELEPHONE="de_DE.UTF-8"
> LC_MEASUREMENT="de_DE.UTF-8"
> LC_IDENTIFICATION="de_DE.UTF-8"
> LC_ALL=

and....

> $ cat /etc/environment
> LANGUAGE="de_DE:de:en_GB:en"
>
> LANG=de_DE.UTF-8

It might possible, that the install-script which should put the MAC-address in /etc/iftab fails with this locale settings, because:

$ ifconfig
eth0 Protokoll:Ethernet Hardware Adresse 00:0B:6A:BB:8E:ED
[...]

$ LANG=C ifconfig
eth0 Link encap:Ethernet HWaddr 00:0B:6A:BB:8E:ED
[...]

When the script "greps" the MAC from this output, it could break with User-locale settings.

Anyone who can confirm this?

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

# LANG=C dpkg -l /etc/iftab
No packages found matching /etc/iftab.

Does this mean /etc/iftab is obsolete in Dapper?

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

Uups

That should have been:

dpkg -S iftab
udev: /usr/share/man/man8/iftab_helper.8.gz
udev: /lib/udev/iftab_helper
udev: /usr/share/man/man5/iftab.5.gz
udev: /etc/udev/rules.d/25-iftab.rules

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

/etc/iftab must be maintained by hand at the moment

Changed in udev:
status: Confirmed → Rejected
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.