howto keep fixed name for the usbnet interface?
I am using Mandriva's development version (cooker) and I am used to connect my ipaq to desktop computer by using usb-cable and then boot the iPAQ to Linux in a way that usbnet connection is created.
With the udev 0.94 Mandriva is using, the usb interface name does not stay anymore as a usb0, instead it is changing everytime I boot the iPAQ to Linux.
(usb1 in second boot, usb2 in third boot). This probably happens because in the kernel's usbnet.c, the MAC address for usbnet is randomly generated by not initializing an array. In mandriva, there is following bug entry describing the details.
http://qa.mandriva.com/show_bug.cgi?id!717
Is this something that could be fixed to upstream udev rules and could already know howto handle this there?
Mika
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · lamikr
I am using Mandriva's development version (cooker) and I am used to connect my ipaq to desktop computer by using usb-cable and then boot the iPAQ to Linux in a way that usbnet connection is created.
With the udev 0.94 Mandriva is using, the usb interface name does not stay anymore as a usb0, instead it is changing everytime I boot the iPAQ to Linux.
(usb1 in second boot, usb2 in third boot). This probably happens because in the kernel'susbnet.c, the MAC address for usbnet is randomly generated by not initializing an array. In mandriva, there is following bug entry describing the details.
Quoted 5 lines
http://qa.mandriva.com/show_bug.cgi?id!717Is this something that could be fixed to upstream udev rules and could already know howto handle this there?
The same problem exists for irda
(http://qa.mandriva.com/show_bug.cgi?id#663) and we also have report about Atheros driver creating two interfaces (ath0 and wifi0) with identical MACs; the effect in current udev is, one interface is left as ath0_renamed while in previous versions it simply failed to rename but was left usable :)
It looks like MAC alone is not sufficient to uniquely identify and name interface.
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEwD1cR6LMutpd94wRAkIqAJ4ks/efk6O2tOoPbK0RjgpCPA/0kACfShv3 LW250IU/kOM7HBvCpa9MbZ8ÎxE
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Andrey Borzenkov
It looks like MAC alone is not sufficient to uniquely identify and name interface.
You need to ignore some devices. Look at the Debian package for details. After my latest changes no more issues have been reported.
Signature · 12 lines
ciao, Marco ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · [email protected] (Marco d'Itri) writes:
Quoted 2 lines · Andrey Borzenkov
It looks like MAC alone is not sufficient to uniquely identify and name interface.
You need to ignore some devices. Look at the Debian package for details. After my latest changes no more issues have been reported.
It looks nice, it's very similar to the script we wrote in Mandriva, excepted it uses an interface pattern whitelist.
The SYSFS{type}="1" trick is quite interesting.
Too bad the "all_interfaces" option obliges to duplicate the interface pattern (eth*|ath*|wlan*|ra*|sta*)
BTW, shouldn't tr* interfaces be handled by this script as well?
Signature · 11 lines
Olivier Blin - Mandriva ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 9 lines · Marco d'Itri
Quoted 3 lines · Andrey Borzenkov
It looks like MAC alone is not sufficient to uniquely identify and name interface.
You need to ignore some devices. Look at the Debian package for details. After my latest changes no more issues have been reported.
Sorry, but I am quite newbie with udev magic & rules.
Do you mean the /etc/udev/persistent-net-generator.rules that is at least in the udev_0.093-1_i386.deb ?
Is that file called/included from some other file, or is everything needed for getting the fixed usbnet device name in this single file?
Mika
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel