Netplan
Cheat sheet · https://pcornel.dk/topic.php?topic=2781
Answer
Netplan (Ubuntu) describes network configuration in YAML files in /etc/netplan/ and renders it for a backend: systemd-networkd on servers or NetworkManager on desktops.
Remember
Indentation matters in YAML. Use netplan try over SSH — it reverts automatically if you do not confirm. File permissions must be 600. Check the rendered result with networkctl status.
First checks
ip -br addr— interfaces and addressesip route— routing table and default routeip neigh— ARP/neighbour cacheip route get <dest>— route, interface and source chosen for a destinationnmcli device status / networkctl— which tool manages each interface
Verify in this order
YAML in /etc/netplan → netplan generate renders backend config → apply → networkd/NetworkManager configures the interface
Where it usually breaks
First mismatch in link/interface → address/namespace → route/neighbor → firewall/policy → socket/daemon → DNS/TLS/SSH/application peer path; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2781