Raspberry Pi 2 Setup [ Ep 4 Static IP]

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.

--

--

Chaloemphon Thipkasorn

TheMegaNear — Developer in Phuket — เขียนไปเรื่อยๆ เผื่อมีประโยชน์ ( Sorry for my english )