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

Andrei Borzenkov arvidjaar at gmail.com
Mon Nov 14 03:48:27 UTC 2016


14.11.2016 00:51, Sylvain Pasche пишет:
> 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

yuck. Does net.ifnames=0 not work for you?



More information about the systemd-devel mailing list