brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: netplan get prints the merged configuration from all YAML files

Netplan
~/tips/tip-netplan-get-merged-config

sudo netplan get

Shows the final merged netplan configuration, or a single part of it.

Netplan reads every file in /etc/netplan, and later file names override earlier ones. Reading them one by one is slow.

sudo netplan get
sudo netplan get ethernets.enp3s0.addresses

netplan get shows the merged result of all YAML files, as YAML. A dotted path limits the output to one part, which is handy in scripts. Files are processed in lexicographic order of their names, so a 99- file overrides a 50- one. That also means 50-cloud-init.yaml overrides a file of yours named 01- or 10-, and can be why your settings seem ignored. The command reads the files on disk, not the running state, for which netplan status is the tool.

Further reading: netplan get

More Netplan tips – to: 192.168.3.0/24 hidden: true lacp-rate: fast link-local: [] wakeonlan: true All Netplan tips (21) All topics

Link