- System ubuntu18.04.2 desktop
- Internet interface name eth0 with dhcp.
- Disable network-manager:
sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service
sudo systemctl stop NetworkManager-wait-online.service
sudo systemctl disable NetworkManager-wait-online.service
sudo systemctl stop NetworkManager-dispatcher.service
sudo systemctl disable NetworkManager-dispatcher.service
sudo systemctl stop network-manager.service
sudo systemctl disable network-manager.service
- Install netplan
sudo apt install netplan.io
- Remove old network
sudo mv /etc/netplan/01-network-manager-all.yaml /etc/netplan/01-network-manager-all.yaml.orig
- Create file /etc/netplan/02-manual-network-conf.yaml with following content:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
bridges:
brctrl:
interfaces: [eth0]
dhcp4: true
- Apply the network
sudo netplan generate
sudo netplan apply