I have been trying to set up my own cloud via nextcloud on an old laptop. So far it all works fine but the only problem is that I can not make it work with a static ip-adress. It works just fine with dhcp though.
Thing I have tried so far is changing to static by editing the 01-netcfg.yaml
to:
network:
version: 2
renderer: networkd
ethernets:
enp4s0:
dhcp4: false
addresses:
- 192.168.10.10/24
routes:
- to: default
via: 192.168.10.1
nameservers:
addresses: [8.8.8.8]
after changing I do $ sudo netplan apply
and reboot the system.
Now when I try to ping google.com
it gives me the error Temporary failure in name resolution
after that I check the resolv.conf
which is set to nameserver 8.8.8.8
I also can not ssh to my server through my windows pc. However if I change the netplan to:
network:
version: 2
renderer: networkd
ethernets:
enp4s0:
dhcp4: yes
it works just fine. I also tried a fresh install of ubuntu servers on my system but no luck.
I am also pretty new to linux I have to say. Am I missing something? Would be really glad if someone could help :)