Skip to main content

Switching network configuration from ifupdown to netplan

Last update:

In cloud servers created from pre-built images with Ubuntu 18.04, 20.04, and 22.04, the ifupdown utility is used to configure the network by default.

You can switch network configuration from ifupdown to netplan; the procedure depends on whether the cloud-init agent is installed in the image.

  1. Connect to the server.

  2. Remove ifupdown:

    sudo apt purge ifupdown
  3. Perform a soft restart of the server:

    sudo reboot now

    The cloud-init agent will automatically configure the network for netplan.