NETPLAN(8)

๐ŸŽ€ NETPLAN(8) ๐ŸŽ€

okay so welcome to the System Manager's Manual page for netplan, the Netplan runtime CLI. ๐Ÿ’…

โœจ NAME โœจ

netplan - Netplan runtime CLI ๐ŸŒธ

๐Ÿงš SYNOPSIS ๐Ÿงš

netplan [--debug ] [generate|apply|try|get|set|status]

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

this page gives you the highlights of the Netplan runtime CLI commands. it's giving "read this first" energy ๐Ÿซถ

๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • --debug โ€” turns on debug messages, so you can see everything that's happening behind the scenes ๐Ÿ”

๐Ÿ”ฅ EXAMPLES ๐Ÿ”ฅ

  • netplan generate โ€” converts Netplan YAML into configuration files that the back ends ( systemd-networkd(8) or NetworkManager(8) ) actually understand. it does not apply the generated configuration, so nothing changes on your running system ๐Ÿ™ˆ
  • netplan apply โ€” applies the current Netplan configuration to a running system. iconic โœจ
  • netplan try [ --timeout 120 ] โ€” takes a netplan(5) configuration, applies it, and automatically rolls it back if the user doesn't confirm the configuration within a time limit. no cap, this is a lifesaver ๐Ÿ˜ญ
  • netplan get [ network.ethernets.eth0 ] โ€” reads YAML files from /{etc,lib,run}/netplan/*.yaml and returns a merged view of the current configuration ๐Ÿฆ‹
  • netplan set [ network.ethernets.eth0={dhcp4: true, dhcp6: true} ] โ€” writes a given key/value pair or JSON struct into a YAML file in /etc/netplan/ and validates its format. the validation part is so important bestie ๐ŸŽ€
  • netplan status [ interface ] โ€” queries the current network configuration and displays it in a human-readable format. very main character energy ๐Ÿ’–

๐ŸŒˆ FILES ๐ŸŒˆ

  • /etc/netplan/ โ€” the directory with YAML configuration files that describe your network configuration ๐Ÿ“

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

netplan(5), netplan-generate(8), netplan-apply(8), netplan-try(8), netplan-get(8), netplan-set(8), netplan-status(8). go check these out, they're all iconic โญ

๐Ÿ’… AUTHOR ๐Ÿ’…

Lukas Mรคrdian (slyon@ubuntu.com). the queen who made all of this happen ๐Ÿ‘‘


okay bestie that's the whole thing, love you, mean it ๐Ÿ’–โœจ๐ŸŒˆ NETPLAN(8), last updated 23 January 2025 ๐Ÿซถ๐Ÿ’œ