Re: udev/network question

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

 



On 09/16/13 17:03, Frantisek Hanzlik wrote:
> Frantisek Hanzlik wrote:
>> Frank Murphy wrote:
>>> On Mon, 16 Sep 2013 13:16:03 -0700
>>> Gary Artim <gartim@xxxxxxxxx> wrote:
>>>
>>>> I have 6 nics that I'd like assigned like:
>>>
>>>>
>>>> Any help greatly appreciated!
>>>
>>> http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
>>> (I don't like this, how do I disable this?)
>>> on the kernel line place:
>>> net.ifnames=0
>>> to keep your eth*
>>>
>>> I have three that match what I want using above, on kernel line.
>>
>> When You use 'net.ifnames=0', then systemd-udev ignore
>> "/etc/udev/rules.d/NetworkNaming.rule". You get ethN interfaces,
> ...
> 
> More accurately, systemd-udev not ignore "/etc/udev/rules.d/NetNam.rule",
> but when there is collision with existing interface name (e.g. rule state
> renaming interface to eth0, but eth0 already exist), then does not
> try some smarter fiddling with, but leave interface with name from kernel.
> 
Hmm, this works on my rawhide machine:

/etc/udev/rules.d/70-my-net-names.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c8:0a:a9:b1:46:c2", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"


I assume it would work for multiple interfaces.

Kevin
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
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