Home » Change netplan renderer from networkd to NetworkManager

Change netplan renderer from networkd to NetworkManager

by tuanlp

How to change renderer from systemd-networkd NetworkManager

First view the config file using the cat command:

$ cat /etc/netplan/01-netcfg.yaml

Sample outputs:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s31f6:
      dhcp4: yes

The above config tells of bringing up the Ethernet interface named enp0s31f6 via DHCP.

Network Manager as the backend for netplan

Network Manager strives for Network Connectivity, which “Just Works” for new Linux users. The machine should use the wired network connection when it’s plugged in but automatically switch to a wireless connection when the user unplugs it. Similarly, you can easily configure a VPN network and many other options. Edit the config file using a text editor such as nano command or vim command

$ sudo cp -v /etc/netplan/01-netcfg.yaml /root/
$ sudo vim /etc/netplan/01-netcfg.yaml


Update it as follows:

# 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

nixfaq[url or txt] missing – contact @ webmaster@cyberciti.biz with the url. when using vim by pressing the Esc+x. Of course, you can apply change by typing the following command without rebooting the system too:

$ sudo netplan apply

The above command applies the current netplan configuration to a running Ubuntu system.

How do I use a GUI tool to configure networking?

Open the Activities (press the Super key on your keyboard) overview and start typing Settings.

Activities overview to start Setting in Ubuntu Linux

Make sure you click on Settings.
Next click on Network:

Activities overview to start Setting in Ubuntu Linux

Now you can edit or and set new IP address. Select IPv4 or IPv6. Type in the IP Address and Gateway, as well as the appropriate Netmask. In the DNS section, switch the Automatic switch to off. Enter the IP address of a DNS server you want to use and so on:

Ubuntu change netplan renderer from networkd to NetworkManager for networking

Conclusion

You just learned how to change netplan renderer and set it to GUI based Network Manager GUI tool.Read the following manual pages using the man command:
$ man 5 systemd.network
$ man NetworkManager
$ man nmcli

You may also like