Ubuntu 18.04
From Teknologisk videncenter
Netplan
/etc/netplan/01-netcfg.yaml or 50-cloud-init.yaml (See what it is called)
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.199/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
Activate
netplan apply
Debugging yaml file
netplan --debug apply