Raspberry Pi 2 Setup [ Ep 4 Static IP]
Apr 12, 2021
If you want to change Pi ip-address from dhcp to static ip just do this step.
$ sudo nano /etc/dhcpcd.conf
move down inside this file. Copy config like red block and change to your connection.
I change ip-address to 192.168.1.100/24 to use DDNS later.
interface wlan0 # connection in ifconfig
static ip_address=192.168.1.100/24
static routers=192.168.1.1 # my network gateway
static domain_name_servers=192.168.1.1 8.8.8.8 # add google dns
Reboot Pi and check result.