LogicalUnit
Posts: 14
Joined: Thu Jan 03, 2013 9:01 am

Can't change to static IP

Sat Jan 16, 2016 11:28 am

Hi everyone, I'm trying to configure my RPi, that is using Raspbian Jessie, to use a static IP. I have Googled some instructions, but they do not seem to be working. Here is my /etc/network/interface:

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.216
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

#iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
I've rebooted the device and restarted the network service several times, but it's not changing from the IP that it was initially assigned over DHCP.

Any help please?

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Can't change to static IP

Sat Jan 16, 2016 11:54 am

In Raspbian Jessie you set a static IP is done in /etc/dhcpcd.conf .
See e.g. viewtopic.php?f=66&t=131932#p879991

Return to “Troubleshooting”