|
Home > Archive > Debian Developers > July 2006 > renaming network interfaces in udev
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
renaming network interfaces in udev
|
|
| Brian May 2006-07-30, 1:22 pm |
| Hello,
For some reason I thought it was considered bad to rename eth* to eth* using
udev (race conditions and such).
However, after upgrading my systems to etch, I notice they do just this,
by default:
--- cut ---
# 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.
# UNKNOWN device (/class/net/eth0)
SUBSYSTEM=="net", DRIVER=="?*", SYSFS{address}=="00:0b:2f:4e:31:65", NAME="eth0"
# UNKNOWN device (/class/net/eth1)
SUBSYSTEM=="net", DRIVER=="?*", SYSFS{address}=="00:0b:2f:6d:19:2b", NAME="eth1"
# UNKNOWN device (/class/net/eth2)
SUBSYSTEM=="net", DRIVER=="?*", SYSFS{address}=="00:11:06:00:00:00:4b:2f", NAME="eth2"
--- cut ---
Where eth0 is the only real network card on this system.
Unfortunately the above rules broke, and I ended up with eth0 being
not accessible. I only had eth0, and it wasn't the correct device.
I ended up renaming eth* in the above to net* and it works.
So I am really puzzled that the above is the default, because I
thought it was previously mentioned in this mailing list that you
cannot do the above due to race conditions or something.
Comments???
Although my system is working fine, I still get the following message on startup (at least last time I looked):
udevd_event: rename_net_if: error changing net interface name eth1_temp to eth0: timeout
which seems really confusing, IMHO.
Thanks for any advice.
Brian May
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Marco d'Itri 2006-07-30, 1:22 pm |
| On Jul 30, Brian May <bam@debian.org> wrote:
> For some reason I thought it was considered bad to rename eth* to eth* using
> udev (race conditions and such).
This was before 0.084-4.
> # UNKNOWN device (/class/net/eth0)
Interesting, can you try to debug why this happens?
It's only cosmetic, but unusual.
> Where eth0 is the only real network card on this system.
I think we can be positively sure that write_net_rules did not invent
these MAC addresses by itself, so if it created rules for eth0 and eth1
with two different MAC addresses there has to be a reason.
eth2 looks like a firewire interface.
> Unfortunately the above rules broke, and I ended up with eth0 being
> not accessible. I only had eth0, and it wasn't the correct device.
So I suppose that your current ethernet card was 00:0b:2f:6d:19:2b and
it was renamed to eth1?
> Comments???
Just asking the maintainer works too, I am not sure if this is a topic of
general interest. Send mail or look for me on IRC if you need more help.
--
ciao,
Marco
|
|
|
|
|