On Tue, Aug 31, 2021 at 01:32:32PM +0300, Andrei POPESCU wrote: > Another completely different approach is to use some other tool to > configure your network that can match on MAC address and just ignore the > names completely. > > For systemd-networkd > > /etc/systemd/network/my.network > > [Match] > MACAddress=ab:cd:ef:12:34:56 > > [Network] > Address=192.168.1.123/24 > Gateway=192.168.1.1 > DNS=192.168.1.1
This still leaves you with an unpredictable interface name. If you have to use that interface name in some other part of your configuration (e.g. a firewall) then this isn't ideal. If you don't care about the names at all, then this may be feasible. It's good to have options, though.