yoyothechicken
Posts: 4
Joined: Fri Jul 22, 2016 6:22 pm

Static IP Address

Mon Jul 25, 2016 4:24 pm

Hello, I am trying to set a static IP address on my Raspberry Pi 3 Model B that runs on Raspbian Jesse. I used the following tutorial for guidance:

http://www.modmypi.com/blog/how-to-give ... ess-update

I followed the instructions exactly; however, each time after the pi reboots, the IP address has not changed from the one the pi came with.

I added this to the end of the dhcpcd.conf file
[attachment=1]dhcpcd.conf.JPG[/attachment]

And this was the output from the ifconfig command after rebooting the pi
[attachment=0]ifconfig.JPG[/attachment]

Can anyone help explain why this might be happening? Any help would be appreciated. Thanks
Attachments
ifconfig.JPG
ifconfig command after reboot
ifconfig.JPG (42.05 KiB) Viewed 387 times
dhcpcd.conf.JPG
the modified dhcpcd.conf
dhcpcd.conf.JPG (11.05 KiB) Viewed 387 times

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Static IP Address

Mon Jul 25, 2016 5:45 pm

Try taking out the spaces around the "=" signs

Code: Select all

interface eth0
static ip_address=172.21.139.161/24
static routers=172.21.139.1
static domain_name_servers=172.21.139.1

Return to “General discussion”