User Tools

Site Tools


ubuntu:networking:change_netplan_renderer_from_networkd_to_networkmanager

This is an old revision of the document!


Ubuntu - Networking - Change netplan renderer from networkd to NetworkManager

Netplan is a utility for easily configuring networking on a Linux-based system.

It supports both networkd and NetworkManager.

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

Make a backup

Backup the current netplan config file:

cp /etc/netplan/01-netcfg.yaml /backup/netplan/

Change the Renderer to NetworkManager

Edit /etc/netplan/01-network-manager-all.yaml:

/etc/netplan/01-network-manager-all.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  #renderer: networkd
  renderer: NetworkManager  
  ethernets:
    enp3s0:
      dhcp4: yes

NOTE: Notice that networkd is commented out with the hash in front.

Also notice that the renderer is set to NetworkManager.


Apply the update

This applies the current netplan configuration to a running system:

sudo netplan apply

Edit the Network Settings in the GUI

Go to Settings.

Click on Network.

Edit the IP address as needed.

  • 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; and enter the IP address of a DNS server you want to use.

ubuntu/networking/change_netplan_renderer_from_networkd_to_networkmanager.1608602274.txt.gz ยท Last modified: 2020/12/22 01:57 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki