Re: How can I prevent udevd from renaming eth0 to em1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux