Nextcloud box static lan ip address

I like to give my nextcloud box a static ip address. What is the best way to do this? And can i safely do this without breaking the box. Can I edit the interfaces file? eth0 static or is there an app for this.

You’ll be fine editing the interfaces file.

1 Like

Ok it worked! For people who want to know…

sudo vim /etc/network/interfaces

auto eth0
iface eth0 inet static

address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

esc, type “:qw” and press enter

sudo ./occ config:system:set trusted_domains 2 --value=192.168.1.200