sudo nano /etc/dhcpcd.conf

Add The Following At The Bottom Of The File:
Edit What Is In Bold Text:


interface Network                     #Network INTERFACE eth0 or wlan0
static ip_address=RaspberryPi-IP/24   #IP ADDRESS OF PI
static routers=ROUTER-Gateway         #IP OF THE GATEWAY NETWORK
static domain_name_servers=DNS-IP     #DNS IP ADDRESS