[systemd-devel] when/where was support for assigning "ethX" names removed?

Reindl Harald h.reindl at thelounge.net
Thu May 12 18:38:46 UTC 2016



Am 12.05.2016 um 19:52 schrieb Chris Friesen:
> On 05/12/2016 11:35 AM, Reindl Harald wrote:
>>
>> Am 12.05.2016 um 19:20 schrieb Chris Friesen:
>>> Could someone point me to the commit that removed support for assigning
>>> "ethX" names based on MAC addresses?
>>>
>>> Alternately, can someone suggest a way to get equivalent behaviour (the
>>> ability to set "ethX" names based on MAC address) using the current
>>> infrastructure? (Preferably as of RHEL 7, so systemd 219 plus a bunch of
>>> patches.)
>>
>> it was not removed - boot with "net.ifnames=0 biosdevname=0"
>>
>> just use network.service on RHEL7 as all the time before and enter the
>> MAC in
>> the ifcfg-file as all the time before
>
> On
> https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
> it says:
>
> "For a longer time udev shipped support for assigning permanent "ethX"
> names to certain interfaces based on their MAC addresses.  This turned
> out to have a multitude of problems.....As a result support for this has
> been removed from systemd/udev a while back."
>
> If that is not accurate then maybe it should be updated

since when do you need udev for that?
you don't and you did not

that said from somebody which switched the way below eth0 and eth1 on a 
CentOS7 mini-PC acting as router months ago

[root at mail-gw:~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:50:56:bd:35:50

ONBOOT=yes
ARPCHECK=no
BOOTPROTO=static
TYPE=Ethernet
MODE=Managed
IPADDR=**.**.**.**
NM_CONTROLLED=no
IPV6INIT=no
NETMASK=255.255.255.0
GATEWAY=**.**.**.**

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160512/5b714525/attachment.sig>


More information about the systemd-devel mailing list