NETPLAN-APPLY(8)

okay so bestie, welcome to NETPLAN-APPLY(8) from the System Managerโ€™s Manual ๐Ÿซถ this is the page for netplan-apply, aka the move where Netplan applies configuration from Netplan YAML files to a running system. main character energy fr fr โœจ

๐Ÿ’– NAME ๐Ÿ’–

netplan-apply โ€” apply configuration from Netplan YAML files to a running system ๐Ÿฆ‹

โœจ SYNOPSIS โœจ

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

netplan [--debug] apply

๐ŸŒธ DESCRIPTION ๐ŸŒธ

netplan apply applies the current Netplan configuration to a running system. periodt. ๐Ÿ’…

The process works as follows:

  1. The back-end configuration is generated from Netplan YAML files.
  2. The appropriate back ends (systemd-networkd(8) or NetworkManager(8)) are invoked to bring up configured interfaces.
  3. netplan apply iterates through interfaces that are still down, unbinding them from their drivers and rebinding them. This gives udev(7) renaming rules the opportunity to run.
  4. If any devices have been rebound, the appropriate back ends are re-invoked in case more matches can be done.

For information about the generation step, see netplan-generate(8). For details of the configuration file format, see netplan(5). iykyk ๐ŸŒˆ

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -h, --help โ€” print basic help. like, โ€œhey bestie, what are the flags again?โ€ energy ๐Ÿซถ
  • --debug โ€” print debugging output during the process. all the receipts, literally ๐Ÿ”ฅ

๐Ÿ’€ KNOWN ISSUES ๐Ÿ’€

okay this is the โ€œit do be like thatโ€ part, so listen up bestie ๐Ÿ˜ญ

netplan apply will not remove virtual devices such as bridges and bonds that have been created, even if they are no longer described in the Netplan configuration. That is due to the fact that Netplan operates statelessly and is not aware of the previously defined virtual devices. no cap ๐Ÿ’€

This can be resolved by manually removing the virtual device (for example ip link delete dev bond0) and then running netplan apply, by rebooting, or by creating a temporary backup of the YAML state in /etc/netplan before modifying the configuration and passing this state to Netplan (e.g. mkdir -p /tmp/netplan_state_backup/etc && cp -r /etc/netplan /tmp/netplan_state_backup/etc/ then running netplan apply --state /tmp/netplan_state_backup). ๐Ÿงš

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

go read these, bestie ๐Ÿ‘‘๐Ÿ“š

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Daniel Axtens (daniel.axtens@canonical.com). iconic. ๐Ÿ’œ


byeee ๐Ÿ’– โ€” signing off from the System Managerโ€™s Manual, NETPLAN-APPLY(8) edition. the footer didnโ€™t list a date, so no invented date here, bestie ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from