[systemd-devel] Disabling Predictable Network Interface Names by masking 80-net-setup-link.rules

Sylvain Pasche spasche at spasche.net
Sun Nov 13 21:51:13 UTC 2016


Hi,

On the Predictable Network Interface Names wiki page [1], one of the option for disabling predictable network interface names is to mask the 80-net-setup-link.rules udev rule.

This has a side effect of somewhat breaking systemd-network: net_setup_link builtin is not run and the ID_NET_DRIVER udev property is not set on the interface.
Consequently, the .network files that match against a driver (such as /usr/lib/systemd/network/80-container-ve.network) don't pick up the interface.

I encountered that issue when trying to use --network-veth with systemd-nspawn on the Fedora cloud image (where 80-net-setup-link.rules is masked). In this case, network is not available in the container and it can be tricky to understand why.

So I would suggest to update that wiki page. Here's an alternative for udev:
  cat /usr/lib/udev/rules.d/80-net-setup-link.rules | grep -v NAME= > /etc/udev/rules.d/80-net-setup-link.rules

Sylvain

[1] http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/


More information about the systemd-devel mailing list