sudo vim /etc/network/interfaces.d/eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.NNN/24
#network 10.0.0.0
netmask 255.255.255.0
gateway 192.168.0.1
source: https://forums.raspberrypi.com/viewtopic.php?t=366025
you can also try this command
sudo nmtui
to manually set a static ip, though I don't recommend.