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/
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to