On Fri, Jan 31, 2020 at 01:31:43PM -0500, Bob Weber wrote:First I created /etc/systemd/network/10-eth0.link using the MAC address and the name eth0. If the MAC changes then there are other characteristics to add to the [Match] section to uniquely define the port (see above link). ------- root@debian-ZFS ~ # cat /etc/systemd/network/10-eth0.link [Match] MACAddress=52:54:00:ea:e3:53 [Link] Name=eth0 Second I linked the default to /dev/null. ----- link -s /dev/null /etc/systemd/network/99-Default.linkI'm almost 100% sure that should be all lower-case, if you expect it to do anything. The file it's overriding is 99-default.link (lower-case).Parsed configuration file /usr/lib/systemd/network/99-default.link Skipping empty file: /etc/systemd/network/99-Default.linkIt's going to use the 99-default.link file because you didn't actually override it. But since you're mapping explicitly on the MAC address of the interface, it doesn't really matter.
Sorry I missed this. I used the lower case in all the machines on my network ... m ymind thinks in upper/lower case ... too bad systemd can't. I went back and renamed the file to lower case and got this output from the udevadm command.
-----
SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link
/sys/class/net/eth0
Trying to open "/etc/systemd/hwdb/hwdb.bin"...
Trying to open "/etc/udev/hwdb.bin"...
Trying to open "/usr/lib/systemd/hwdb/hwdb.bin"...
Trying to open "/lib/systemd/hwdb/hwdb.bin"...
Trying to open "/lib/udev/hwdb.bin"...
=== trie on-disk ===
tool version: 244
file size: 10287564 bytes
header size 80 bytes
strings 2145012 bytes
nodes 8142472 bytes
Load module index
Found container virtualization none.
timestamp of '/etc/systemd/network' changed
Skipping overridden file
'/usr/lib/systemd/network/99-default.link'.
Skipping empty file: /etc/systemd/network/99-default.link
Parsed configuration file
/usr/lib/systemd/network/73-usb-net-by-mac.link
Parsed configuration file /etc/systemd/network/10-eth0.link
Created link configuration context.
ID_NET_DRIVER=virtio_net
eth0: Config file /etc/systemd/network/10-eth0.link is applied
ethtool: autonegotiation is unset or enabled, the speed and duplex
are not writable.
eth0: Device has name_assign_type=4
Using default interface naming scheme 'v243'.
eth0: Policies didn't yield a name, using specified Name=eth0.
ID_NET_LINK_FILE=/etc/systemd/network/10-eth0.link
ID_NET_NAME=eth0
Unload module index
Unloaded link configuration context.
New lines:
Skipping overridden file '/usr/lib/systemd/network/99-default.link'
Skipping empty file: /etc/systemd/network/99-default.link
That's more like it.