NETPLAN-SET(8)

โœจ netplan-set(8) โœจ

okay bestie, so this is the netplan-set page from the System Manager's Manual โ€” and it's literally the tool that writes your Netplan YAML config snippets to file. tiny tool, big main character energy. let's go ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

netplan-set โ€” write Netplan YAML configuration snippets to file ๐ŸŽ€


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

netplan [--debug] set -h|--help

netplan [--debug] set [--root-dir=ROOT_DIR] [--origin-hint=ORIGIN_HINT]
[key=value]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

netplan set [key=value] writes whatever key/value pair โ€” or whole YAML subtree โ€” you hand it into a YAML file living in /etc/netplan/, and then it validates the format. like, it checks its own work, we love a self-aware icon โœจ

you can pass a single value like this:

"[network.]ethernets.eth0.addresses=[1.2.3.4/24, 5.6.7.8/24]"

or a full subtree, like this:

"[network.]ethernets.eth0={dhcp4: true, dhcp6: true}"
๐Ÿซถ for the deets on what the config file format actually looks like, go peek at netplan(5) โ€” it's giving reference material, iykyk.

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -h, --help โ€” prints basic help. that's it, that's the whole vibe ๐Ÿ™ˆ
  • --debug โ€” prints debugging output while the thing is running. for when you wanna see the receipts ๐Ÿ”ฅ
  • --root-dir โ€” writes the YAML files into this root instead of /. like, redirecting home base โœจ
  • --origin-hint โ€” gives your config file a name, for example: 70-netplan-set => /etc/netplan/70-netplan-set.yaml. naming your child, iconic ๐Ÿ‘‘

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

netplan(5), netplan-get(8), netplan-dbus(8) โ€” the rest of the friend group, go say hi ๐Ÿ’œ


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Lukas Mรคrdian (lukas.maerdian@canonical.com). thank you for your service ๐Ÿซก๐Ÿ’–


okay that's the whole page, bestie ๐ŸŒŸ this one's from the System Manager's Manual and it's dated NETPLAN-SET(8) โ€” literally the last line of the original fr fr, so consider it your cute sign-off. slay, go write some YAML ๐ŸŽ€โœจ๐Ÿ’…

๐Ÿ“ฆ where this page comes from