Uninstall Netplan
Outdated page
This page was set to be reviewed before 2022-01-01 by the page owner.
Contact the page Owner (opens default mail client) if you require this page to be updatedOutdated pages are managed through the outdated page site
These directions have been tested also to Ubuntu 18.04.1 and will very likely work also for any future release using netplan and systemd.
There's no need at all to fiddle with GRUB nor any manual file removal. The configuration set up in /etc/networking files and directories will survive reboots.
These are the verified steps:
- Check the actual interface names you are interested in with
ip lfor the links (aka interfaces) and withip afor addresses. - Install
ifupdownwithsudo apt -y install ifupdown. - Purge
netplanwithsudo apt -y purge netplan.io. - Configure
/etc/network/interfacesand/or/etc/network/interfaces.daccordingly to your needs (man 5 interfacescan be of some help with examples). - Restart the
networkingservice withsudo systemctl restart networking; systemctl status networkingorsudo /etc/init.d/networking restart; /etc/init.d/networking status. The output of thestatuscommand should mentionactiveas its status. - The command
ip awill show whether the expected network configuration has been applied. - Optionally, manually purge the remants of the netplan configuration files with
sudo rm -vfr /usr/share/netplan /etc/netplan.
No reboot is needed in order to "refresh" the IP configuration: it will be active as of step no.5 . In case of troubles, double-check the interface names. A typical IPv4 DHCP configuration will resemble this one:
auto enp0s3
iface enp0s3 inet dhcp
while a static IPv4 address can be configured like this:
auto enp0s3
iface enp0s3 inet static
address 192.168.255.42/24
gateway 192.168.255.254
#dns-nameservers 8.8.8.8 208.67.222.222
Want to make this site better? Open a PR, help fund hosting costs or message me on Matrix