udev/network question

Kevin Martin ktmdms at gmail.com
Mon Sep 16 22:21:30 UTC 2013


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 at 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


More information about the users mailing list