Hi!
On 22.09.24 15:58, Ansgar 🙀 wrote:
On Fri, 2024-09-20 at 13:12 +0200, Lukas Märdian wrote:
I've repeated the reasons why I think a hybrid stack using Netplan is a
feasible solution many times in previous threads, therefore I'd like to refer
to a list of frequently asked questions, instead of spreading more reasons
across more replies: https://wiki.debian.org/Netplan/FAQ
The FAQ states: "If native backend configuration is applied on top of
that, Netplan will now know, nor care about it (unless they try to
configure an interface controlled by Netplan in a conflicting way)."
What does that mean on desktop systems? What will happen when a user
wants to change the configuration using the UI (which usually talks to
NetworkManager)?
This is a very good question, also asked by Chris above.
If users want to control their network configuration through the NetworkManager
UI, they can just continue to do that as always, it's a case of configuration at
the native layer. NM will continue to function as always, storing its profiles
in /etc/NetworkManager/system-connections. Netplan would not know about those
connection-profiles, but would not interfere, as long as people do not try to
configure the same interface through /etc/netplan/ settings.
The benefit that Netplan would provide in such cases is that debian-installer
installs a /etc/netplan/01-network-manager-all.yaml config file, reading:
network:
version: 2
renderer: NetworkManager
This sets Netplan's default renderer to NetworkManager, so that any
configuration
added in /etc/netplan/ would show up in the NetworkManager UI, and the interface
will be handled by the NetworkManager daemon. Still, config files in
/etc/netplan/
need to be driven through Netplan settings.
In Ubuntu we carry patches, which had been discussed with [upstream] (but were
rejected back then). Those might need some more refinement before wider
adoption.
Those allow to configure interfaces through Netplan and NetworkManager at the
same
time, e.g. a config originating from /etc/netplan/ can be modified via the UI
tooling
provided by NetworkManager. In my [blog] I wrote about how we utilize this in
Ubuntu.
Cheers,
Lukas
[blog]
https://blog.slyon.de/2023/11/12/netplan-brings-consistent-network-configuration-across-desktop-server-cloud-and-iot/
[upstream]
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/556