Why would it not keep a static IP? - Raspberry Pi Forums


i switched linksys router running tomato firmware ubiquiti edge router running edgeos. prior change, rpi had no issues keeping it's static ip outside dhcp range of router. after switch, booted rpi find it's got dhcp address router on 192.168.1.229 though none of rpi settings have changed.

what make rpi not follow it's interfaces settings , use dhcp instead of static?
none of other devices on network have similar behaviour.

code: select all

# interfaces(5) file used ifup(8) , ifdown(8)  # please note file written used dhcpcd # static ip, consult /etc/dhcpcd.conf , 'man dhcpcd.conf'  # include files /etc/network/interfaces.d: source-directory /etc/network/interfaces.d  #iface eth0 inet manual  # loopback network interface auto lo iface lo inet loopback  # primary network interface iface eth0 inet static address 192.168.1.65 netmask 255.255.255.0 gateway 192.168.1.1 broadcast 192.168.1.255

greetings.

read lines head of /etc/network/interfaces:

# please note file written used dhcpcd
# static ip, consult /etc/dhcpcd.conf , 'man dhcpcd.conf'


/etc/network/interfaces should have: iface eth0 inet manual

add these /etc/dhcpcd.conf:
interface eth0
static ip_address=192.168.aaa.bbb



it's pi specific thing, different debian.

piece of information copied lot of times on forum. should google.


raspberrypi



Comments