missing description for migration of ifup/down scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm still struggling with the migration of ubuntu 16.04 -> 18.04 due to the invention of netplan.
I have several use cases where lots of scripts in /etc/network/
I've spent several days of search for description about how to migrate those up/down scripts, could not find any, but lots of reports of other people having similar problems. Some recommend strange and error prone combinations of udev and systemd, other recommend netword-dispatcher (which I tried and it doesn't work), still others say that if you want things to run you'll need to reinstall ifupdown.
To the best of my current knowledge netplan seems to be broken by design or at least far from production ready, as if the requirements of starting and stopping jobs for a particular interface had just been completely forgotten (or at least been forgotten to mention in the documentation).
So what is the netplan's way of taking interfaces up and down (on request, and not just at boot time) and to start and stop services for these interfaces?
Hi,
I'm sorry to hear that you have ad a bad experience with netplan.
The usual answer to this is that you have 3 options.
The first and most preferred option is to use networkd- dispatcher. There is some documentation, including examples, at https:/ /netplan. io/faq# use-pre- up-post- up-etc- hook-scripts This will work for starting/stopping jobs when an interface goes up and down, not just at boot.
The second option is to use a systemd unit file. These are more flexible than networkd-dispatcher in that they can run at a wider range of times. There are lots of examples of this on the internet.
Lastly, you can purge netplan.io and install ifupdown and go back to the way things were if you wish.
Hope this helps, please let me know if there's anything netplan related where you need further information.
Regards,
Daniel