Created
June 23, 2020 17:07
-
-
Save dbkinghorn/ed923bbcb7ec3f53bd2da5fe5e9b49b2 to your computer and use it in GitHub Desktop.
Revisions
-
dbkinghorn created this gist
Jun 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ #!/usr/bin/env bash # netplan2NM.sh # Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces echo 'Changing netplan to NetowrkManager on all interfaces' # backup existing yaml file cd /etc/netplan cp 01-netcfg.yaml 01-netcfg.yaml.BAK # re-write the yaml file cat << EOF > /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: NetworkManager EOF # setup netplan for NM netplan generate netplan apply # make sure NM is running systemctl enable NetworkManager.service systemctl restart NetworkManager.service echo 'Done!'