How to setup static ip to raspberry pi.

Its easy if your raspberry pi has a static ip when you want to ssh into it, instead of it getting a dynamic one each time it boots up and joins your wifi network.

Edit /etc/dhcpcd.conf

Add following (if 192.168.1.1 is the router address & 19.168.1.101 is static ip you want to assign to raspi)-

interface wlan0

static ip_address=192.168.1.101/24

static router=192.168.1.1

static domain_name_server=192.168.1.1

Leave a Reply

Your email address will not be published. Required fields are marked *