From time to time it may be necessary to change your raspberry pi to use a static ip address.
Edit the dhcpcd.conf file…
SSH into the raspberry pi and type sudo nano /etc/dhcpcd.conf
Insert the ip address information to the top of the file and save.
interface eth0 static ip_address=192.168.1.X/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1
Reboot the raspberry pi.