I've seen some people saying the file to set static ip is still /etc/network/interfaces
And I've seen other people saying that in 18.04 it's now on /etc/netplan
(which people seem unhappy about)
I've tried putting this:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
dhcp6: no
addresses: [192.168.1.9/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1, 8.8.8.8, 8.8.4.4]
In my /etc/netplan/50-cloud-init.yaml
and doing sudo netplan apply
but that just kills the servers connection to the internet.