Am 06.11.2017 um 17:53 schrieb Narcis Garcia:

> Interface is declared at /etc/network/interfaces :
> auto enp2s0
> allow-hotplug enp2s0
> iface enp2s0 inet dhcp
> 
> An executable script:
> /etc/network/if-up.d/test1
> only runs on boot (per each NIC). If network cable is plugged to enp2s0
> some minutes later, script is not run.
> Same behavior when booting with network, and unplugging + plugging later.

Hotplug in the context of udev is the hotplugging of a hardware PCI or USB 
device,
not of a network cable. If you want to have a network interface brought
up or down whenever a cable is (un)plugged, try installing the netplug
package, edit /etc/netplug/netplugd.conf and add enp2s0 to it, and
remove both "auto enp2s0" and "allow-hotplug enp2s0" from
/etc/network/interfaces.

Note that cable (un)plug events might not be properly supported by all
network cards.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <g...@debian.org>

Attachment: signature.asc
Description: PGP signature

Reply via email to