On Thu, Jun 29, 2017 at 04:02:56PM +0200, Sven-Haegar Koch wrote:

> With Debian Jessie I had the following sections in /etc/network/interfaces,
> working fine:
> 
> allow-hotplug eth0
> iface eth0 inet static
[...]
> iface eth0 inet6 auto
[...]
> 
> allow-hotplug eth2
> iface eth2 inet static
[...]
> iface eth2 inet6 auto
[...]
> 
> But since the upgrade from Jessie to Stretch eth0/eth2 are not
> activated anymore.

I've tried to reproduce this but allow-hotplug seems to work fine on all
systems I tried, including VMs.

> The /etc/init.d/networking script contains a section ifup_hotplug()
> handling this, but the systemd service networking.service is missing it,
> and nothing else seems to replace it if the interface already exists
> at boot time.

It should be handled by udev: /lib/udev/rules.d/80-ifupdown.rules will
call /lib/udev/ifupdown-hotplug whenever it finds a network device. This
in turn calls systemctl start ifup@$INTERFACE.service, which calls ifup
--allow=hotplug $INTERFACE.

> As this VM image should work without screaming boot errors even if network
> interfaces are missing I do not want to use "auto ethX" instead - which
> worked with allow-hotplug exactly as wanted in Jessie.

Can you provide me with the configuration of your VM, and your full
/etc/network/interfaces file?

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to