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 <gar...@gmail.com> 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@lists.fedoraproject.org
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

Reply via email to