On Fri, 2006-12-22 at 15:17 -0700, Zan Lynx wrote:
[snip]
> Ah, Gentoo's /etc/conf.d/net.example does show how to name based on MAC
> address, but the comment says udev rules are superior.

I found out a bit more about udev and it is interesting.  It has a
persistant net device name generator.  Once it sees a MAC address, it
builds a new rule for it, and that is it forever.  Or until someone
changes it. :)

On my Gentoo, it is /etc/udev/rules.d/70-persistent-net.rules
and /etc/udev/rules.d/75-persistent-net-generator.rules

The 75 rule is what calls a program to create rules in 70.  Since 70 is
ahead of 75, if the interface is defined in 70 it doesn't get to 75 and
doesn't create new rules.

So here's what I have in 70 for my wireless card:
# PCI Device: 0x14e4:0x4301 (bcm43xx)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:90:4b:59:b9:0a", 
NAME="eth2"

I don't know why my eth0 interface isn't in there.  Perhaps it doesn't
generate udev events.

Anyway, if you have a rule like that you could edit it and change the
NAME to whatever you like.
-- 
Zan Lynx <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
LinuxR3000 mailing list
[email protected]
http://lists.pcxperience.com/cgi-bin/mailman/listinfo/linuxr3000
Wiki at http://prinsig.se/weekee/

Reply via email to