Static IP on Raspberry Pi

Open terminal or connect via ssh. Than type:
sudo nano /etc/dhcpcd.conf
Your dhcpd.conf file should look like this. Change these as you wish and correctly for router address (a.k.a. gateway) .
interface eth0
static ip_address=192.168.1.200/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface wlan0
static ip_address=192.168.1.201/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
sudo reboot
and it’s done!