Switching network configuration from ifupdown to netplan
In cloud servers created from pre-made images with the Ubuntu 18.04, 20.04, and 22.04 operating system, the ifupdown utility is used by default to configure the network.
You can switch network configuration from ifupdown to netplan; the procedure depends on whether the cloud-init agent is installed in the image.
Cloud-init is installed
Cloud-init is not installed
-
Remove ifupdown:
sudo apt purge ifupdown -
Perform a soft restart of the server:
sudo reboot nowThe cloud-init agent will automatically configure the network for netplan.