Skip to content

Instantly share code, notes, and snippets.

@bicisteadm
Last active October 14, 2023 21:28
Show Gist options
  • Save bicisteadm/01f358ce61efe088e6a951d1c69d8282 to your computer and use it in GitHub Desktop.
Save bicisteadm/01f358ce61efe088e6a951d1c69d8282 to your computer and use it in GitHub Desktop.
Replace netplan with NetworkManager - Ubuntu 22.04
 apt install network-manager
cat <<EOF >/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
[keyfile]
unmanaged-devices=none
EOF
cat <<EOF >/etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
# Set and change netplan renderer to NetworkManager GUI tool 
network:
  version: 2
  renderer: NetworkManager
EOF
systemctl start NetworkManager
systemctl enable NetworkManager
netplan apply
reboot now

run nmtui and make samo change to create conf file.

systemctl disable --now systemd-networkd.service systemd-networkd.socket networkd-dispatcher.service && systemctl restart NetworkManager
apt purge netplan netplan.io -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment