
hostname -I
sudo nano /etc/dhcpcd.conf
You can see bunch of different settings here, basicly every line that starts with hashtag is a commentary and not taken in account.
We are looking for the section named “Example static IP configuration”.
We’ll uncomment these lines by deleting hashtags at the beginning of the line and create our configuration in here.
interface wlan0
static ip_address=10.0.0.101/24
static routers=10.0.0.138
static domain_name_server=10.0.0.138 8.8.8.8
Set your ip address, routers and dns servers here according to your network setup. These numbers are good bet, but only ilustration.
sudo reboot
# or
sudo service networking restart
After reboot connect to Raspberry Pi with network name (for example pi.local) or new assigned IP address. The case in this tutorial 10.0.0.101
Check new IP address:
hostname -I
If this post helped you in any way please check out my YouTube channel for more guides and videos.
Helping Ninja © 2025