ifrename cannot map eth0 reliably; eth0 not available automatically (breezy)

Bug #16538 reported by Daniel Hahler
32
Affects Status Importance Assigned to Milestone
wireless-tools (Ubuntu)
Invalid
High
Scott James Remnant (Canonical)

Bug Description

A few days after upgrading to breezy I get the following warning on boot:

Warning: Interface name is `eth0' at line 2, can't be mapped reliably.

This is thrown by ifrename and reproducable after boot (by calling "ifrename -dp").

I have only the loopback interface available after bootup and have to manually run "pppoeconf" everytime!

Revision history for this message
Daniel Hahler (blueyed) wrote :

Created an attachment (id=2182)
/etc/network/interfaces

Revision history for this message
Daniel Hahler (blueyed) wrote :

Created an attachment (id=2183)
Output of iconfig after manual run of pppoeconf

Revision history for this message
Daniel Hahler (blueyed) wrote :

Created an attachment (id=2184)
/etc/iftab (mac address is correct)

Revision history for this message
Matt Zimmerman (mdz) wrote :

The code looks wrong; this '||' should almost certainly be an '&&', otherwise
the test is always true.

  /* Check the interface name and issue various pedantic warnings */
  if((!strcmp(ifnode->ifname, "eth0")) || (!strcmp(ifnode->ifname, "wlan0")))
    fprintf(stderr,
            "Warning: Interface name is `%s' at line %d, can't be mapped
reliably.\n",
            ifnode->ifname, linenum);

Revision history for this message
Daniel Hahler (blueyed) wrote :

(In reply to comment #4)
> The code looks wrong; this '||' should almost certainly be an '&&', otherwise
> the test is always true.

..but AFAICS from the source code of ifrename.c it only outputs a warning here. I don't think this is the cause of the error (though it
should also be fixed of course).

Revision history for this message
Matt Zimmerman (mdz) wrote :

*** Bug 16248 has been marked as a duplicate of this bug. ***

Revision history for this message
Seth Kinast (seth) wrote :

*** Bug 19161 has been marked as a duplicate of this bug. ***

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

*** Bug 18631 has been marked as a duplicate of this bug. ***

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

This one looks the best root bug.

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

Added takeover support to both ifrename init script and hotplug's net.agent.

This gets rid of that warning as it allows it to map eth0 reliably.

Revision history for this message
Thomas Hood (jdthood) wrote :

This bug has been marked as a duplicate of bug 7050.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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