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

Lennart Poettering lennart at poettering.net
Mon Nov 14 14:14:33 UTC 2016

On Sun, 13.11.16 22:51, Sylvain Pasche (spasche at spasche.net) wrote:

> 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

Hmm, I figure this would be much better, no:

     ln -s /dev/null /etc/systemd/network/99-default.link

Wouldn't that work to for you?


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list