Skip to content

Instantly share code, notes, and snippets.

@hi-ko
Forked from mss/ifupdown-to-netplan.txt
Last active November 26, 2025 08:45
Show Gist options
  • Select an option

  • Save hi-ko/32e9ca104910e5f5b261dc5077c62284 to your computer and use it in GitHub Desktop.

Select an option

Save hi-ko/32e9ca104910e5f5b261dc5077c62284 to your computer and use it in GitHub Desktop.
Migrate from ifupdown to netplan
# Tested on an upgraded Ubuntu 20.04
apt install netplan.io
systemctl unmask systemd-networkd.service
systemctl unmask systemd-resolved.service
ENABLE_TEST_COMMANDS=1 netplan migrate
netplan try
reboot
apt purge ifupdown # resolvconf
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment