To change the netplan renderer from networkd to NetworkManager on Ubuntu, you can follow these steps:
- Open the netplan configuration file: Run the following command to open the netplan configuration file in a text editor:
sudo nano /etc/netplan/50-cloud-init.yaml
- Change the renderer: In the configuration file, you will see the “networkd” renderer specified. Change this to “NetworkManager” and save the file.
# Before
network:
version: 2
renderer: networkd
# After
network:
version: 2
renderer: NetworkManager
- Apply the changes: Run the following command to apply the changes to netplan:
sudo netplan apply
- Restart NetworkManager: Run the following command to restart the NetworkManager service:
sudo systemctl restart NetworkManager
- Verify the change: You can verify that the renderer has been changed by running the following command:
netplan --debug generate
It should show that the renderer is “NetworkManager”
You should now see that the NetworkManager service is managing your network interfaces.