The interfaces file is where you need to change from the default “dhcp” setting to add some information about the “static” IP address that you want to configure.
Edit the /network/interfaces file
~$ sudo nano /etc/network/interfaces
Then reboot the computer or run the below command
~$ sudo /etc/init.d/networking restart