Score:0

netplan: Why does it generate the back-end configuration at boot time and what is the consequence?

ly flag

I'm trying to understand how netplan is working exactly and I get stuck at the following technical design concept:

From netplan introduction:

During early boot, the netplan “network renderer” runs which reads /{lib,etc,run}/netplan/*.yaml and writes configuration to /run to hand off control of devices to the specified networking daemon.

This is because of the netplan key goal:

No persistent generated config, only original YAML config

I do not understand, why netplan does follow this design concept. What is the reason and/or advantage of a non persistent back-end configuration, that is generated every time, the system does boot?

And in addition to that: What do I need to take care about, if I would work on a network configuration by editing the back-end configuration using one of the well known methods?

A reason for a mix of using netplan along with a back-end configuration tool could be e.g., that most of the network configruation is covered by using netplan, but for a specific part there would be the need to edit the configuration without netplan, because netplan does not support the needed capability (yet).

Would be the only way to resolve such a situation by leaving netplan alone and start just using pure networkd, even though one of a couple of connections/interfaces would be affected only?

This question is about understanding netplan only! I do not have any technical issues with netplan currently!

Thank you!

user535733 avatar
cn flag
"why" is because Netplan reads its config file when it is started...and it is started at every boot.
heynnema avatar
ru flag
What do you mean the *"configuration is generated at boot time"*? Is this a Desktop or Server installation? Edit your question and show me `cat /etc/netplan/*.yaml` and `sudo lshw -C network`. Start comments to me with @heynnema or I'll miss them.
netplanless avatar
ly flag
I do appologize for not asking precisely enough! Sorry, if I did waste some people time! I did edit my question, to make it more understandable.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.