Change netplan renderer from networkd to NetworkManager

I prefer to use NetworkManager on my Ubuntu desktop, but currently, it is using networkd. As a result, I cannot set up or configure NetworkManager using GUI tools. Is there anyway to change netplan renderer from networkd to NetworkManager running on Ubuntu Linux? How can I change netplan renderer in Ubuntu Linux?

Ubuntu Linux changed the networking config, and it is done using YAML. Netplan is a utility for easily configuring networking on a Linux-based system. It supports both networkd and NetworkManager.

ADVERTISEMENTS

networkd is part of Systemd. In other word systemd-networkd used to manage network connections using Systemd. On the other hand NetworkManager is a GUI tool for configuring networking options.

You can tell Netplan to use NetworkManager and it is useful for Linux desktop or laptop users. By default all network devices get handled by systemd-networkd. Let us see how to change that on an Ubuntu Linux desktop.

Change netplan renderer from networkd to NetworkManager

The procedure is as follows:

  1. Open the Terminal window app
  2. Backup current config file using the cp command.
  3. Type the following command to edit your netplan config file
  4. Set renderer to NetworkManager
  5. Save and close the file
  6. Reboot the system

Let us see all commands in details.

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

Save and close the file. You can reboot the Linux computer or apply change by typing the following command:
sudo netplan apply
The above command applies the current netplan configuration to a running 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. For more information, see this page here and here.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS

Comments on this entry are closed.

  • 🐧 Vivek Gite Oct 7, 2019 @ 3:00

    Have a question or comment? Post it to our forum here.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.