On Tue, Nov 07, 2017 at 09:55:17PM +0100, Narcis Garcia wrote: > Thanks Guus for the suggestion about netplug as alternative. > Network interface's configurtaion (IP) is already done when hotplugging > the cable. > > What is not working on same event is the run-parts of scripts in > /etc/network/if-up.d [...]
Aha. If you are using DHCP, then the DHCP client will probably detect that the cable is plugged in again at some point, and will assign it an address. However, ifupdown is never called when that happens, so ifupdown will not cause any of the scripts to run. Also, ifupdown will consider the interface to be up all the time, whether the cable is plugged in or not. Note that dhclient itself can also run scripts when it gets or loses a lease, see man dhclient-script. > (as non-Systemd Debian versions did) This has nothing to do with systemd vs. sysvinit. Maybe it is caused by changes in udev. But on my computers, I don't see udev generating any events when I plug or unplug a network cable... -- Met vriendelijke groet / with kind regards, Guus Sliepen <g...@debian.org>
signature.asc
Description: PGP signature