Roel911
Roel911

Reputation: 13

Raspberry PI 3, static ip doesn't work

I want to give my Raspberry PI a static ip address. I only use a network cable. I do not use WLAN. My "/etc/network/interfaces" is set to static, with address, netmas, network, broadcast and gateway specified. After a reboot the address stays the same. In my router giving it a default address is disabled. I also executed "sudo mv /var/lib/dhcp /var/lib/dhcp1" and rebooted again, still no result. Thank you for your reply.

Upvotes: 0

Views: 1723

Answers (1)

Gavin
Gavin

Reputation: 26

if you are using Jessie then you need to update the dhcpcd.conf file in /etc/

At the bottom add:

interface eth0
static ip_address=<your ip address>/24            
static routers=<your router ip>
static domain_name_servers=<your router ip>

save, exit, reboot

Upvotes: 1

Related Questions