How can I prevent udevd from renaming eth0 to em1

JD jd1008 at gmail.com
Sun Oct 21 02:47:57 UTC 2012


On 10/20/2012 08:41 PM, Michael H. Warfield wrote:
> On Thu, 2012-10-18 at 10:05 -0600, JD wrote:
>
>> Made the change and  rebooted.
>> Sorry - it does not deter udev from screwing up!
>>
>> $ dmesg | grep em1
>> [    6.033303] udevd[218]: renamed network interface eth0 to em1
>>
>> $ cat /etc/udev/rules.d/70-persistent-net.rules
>> # This file was automatically generated by the /lib/udev/write_net_rules
>> # program, run by the persistent-net-generator.rules rules file.
>> #
>> # You can modify it, as long as you keep each rule on a single
>> # line, and change only the value of the NAME= key.
>>
>> # PCI device 0x1039:0x0900 (sis900)
>> SUBSYSTEM=="net",  ATTR{address}=="edited out", KERNEL=="eth*", NAME="eth0"
> I had the same problem you did (didn't work removing biosdevname and
> didn't work adding the suggested persistent-net rules) until I went to
> that posting another contributor made toward a tutorial.
>
> Following his instructions, I ended up with this:
>
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:b9:13:a8:fc", NAME="eth0"
>
> The earlier (in this thread) suggestion was this:
>
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:b9:13:a8:fc", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
>
> That did NOT work for me either.
>
> The difference drops these three stanzas:
>
> ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*",
>
> That seems to have made it work for me.  At least it's now working for
> me.  I may try and add those stanzas back in one by one to see which one
> broke it.
>
> Since you dropped the first two but kept the KERNEL=="eth*" stanza,
> maybe that's your problem.
>
> Regards,
> Mike
>
>
Thank you Michael. Will try it and get back to you.

Cheers,

JD



More information about the users mailing list