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 generate checks your YAML without touching the network

Netplan
~/tips/tip-netplan-generate-validate-yaml

sudo netplan generate

Parses the netplan YAML and reports errors without changing the network.

A YAML typo in a netplan file can lock you out when you apply it. The generate step catches many of those first.

sudo netplan generate
sudo netplan --debug generate

netplan generate reads the YAML in /etc/netplan, /lib/netplan and /run/netplan and writes the configuration for the backend (networkd or NetworkManager). It does not apply anything to the live interfaces, so it is a safe way to catch YAML mistakes. --debug prints extra output while it runs. A file that passes can still be wrong in content, such as a bad gateway, so follow it with netplan try on remote machines.

Further reading: netplan generate

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