How can I prevent udevd from renaming eth0 to em1

JD jd1008 at gmail.com
Thu Oct 18 14:11:01 UTC 2012


On 10/18/2012 02:41 AM, Tim wrote:
> On Wed, 2012-10-17 at 19:49 -0600, JD wrote:
>> I did do just that, as also vehemently stated by many other bloggers I
>> read on other web sites. Unfortunately, IT DOES  NOT WORK!!  Here is
>> what I have in /etc/udev/rules.d/70-persistent-net.rules
>>
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="00:03:0d:15:2b:9e", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth0
> I don't see a closing quote at the very end.
>
> It's a very long time since I looked at hardware rule making, but can
> you omit some of the clauses, and simplify it down to just matching the
> MAC?  (i.e. Try and omit the DRIVERS or ATTR, sections, et cetera.)  I
> seem to recall advice, along those lines, for setting rules to match
> other hardware (such as for mounting specific drives at specific
> places).
>
>
>
Hi Tim,
I assure you the MAC does match the MAC of the Ethernet chipset.
Looking at the quotes:.. All entries have exactly the same quotes around
every item right of the == . To wit:
# PCI device 0x1039:0x0900 (sis900)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="edited 
out", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*",  NAME="eth0"

I think the bug is in udev itself.




More information about the users mailing list