2.2.1. How to revert from netplan to legacy interfaces file

Warning

It’s always good to make sure that you have ifupdown installed and some sort of backup or way to fallback to a previous version of the OS if this breaks the network.

  • Install ifupdown

$ sudo apt-get install ifupdown
  • Edit the /etc/default/grub file

$ sudo nano /etc/default/grub
  • Add the following line:

GRUB_CMDLINE_LINUX="netcfg/do_not_use_netplan=true"
  • Save and exit the file (CTRL+X, Enter, then Y)

  • Now update the grub using the following command

$ sudo update-grub

Now you can add all the interface details in /etc/network/interfaces file and reboot the ubuntu PC/server.