31.03.22, 13:01 +0200, Sven Hartge:
Greg Wooledge <greg@wooledge.org> wrote:unicorn:~$ cat /etc/systemd/network/10-lan0.link [Match] MACAddress=18:60:24:77:5c:ec[Link] Name=lan0Careful with that one. If you use VLANs then you suddenly get multiple interface with the same MAC and strange things will happen, because it matches for all of them. The failure-proof way of doing this is by adding "Type=ether" to the Match clause, which will only match the physical interfaces and not the subinterfaces. (Which will be of Type=vlan.):
Since I haven't (yet) used the combination VLAN/systemd.link I haven't run into this issue. But it is definitely something to keep in mind.
Thanks for the hint! -- Regards mks