Is it sufficient to have one of these three in Ubuntu 19.04? Is it possible to have all three and how to configure them so they were not conflicting?
systemd-networkd started by networking.service?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
As you might know
/etc/network/interfaces has been replaced with
netplan works fine with both
So you can have them all work together!
If you're running Ubuntu as your desktop, then you should use
NetworkManager or config
netplan so it uses
NetworkManager as its default renderer:
network: version: 2 renderer: NetworkManager
Otherwise you can easily setup your interfaces in
netplan itself, for example to have
interfaces like configuration and
network-manager work together:
network: version: 2 renderer: NetworkManager wifis: wlp4s0: dhcp4: yes access-points: my-access-point: password: passw00rd network: version: 2 renderer: networkd ethernets: enp3s0: addresses: - 192.168.1.10/24 dhcp4: false dhcp6: false gateway4: "192.168.1.1" nameservers: addresses: - "184.108.40.206" - "220.127.116.11"
To configure netplan, save configuration files under /etc/netplan/ with a .yaml extension (e.g. /etc/netplan/config.yaml), then run sudo netplan apply. This command parses and applies the configuration to the system. Configuration written to disk under /etc/netplan/ will persist between reboots.
Replacing netplan with
ifupdown is still possible but something that I wouldn't suggests.
/etc/NetworkManager/NetworkManager.confso it would be able to manage your interfaces.
You can even run
dhclient directly to bring an interface up.