raspberry pi , static ip? C’mon

You got to be kidding me. Why on earth are RASPBIAN JESSIE diverting from a common practices on ALL Linux distributions ? Setting a static IP on debian should be done via /etc/network/interfaces why on earth are they making dhcpcd the master of the univers?.

a common /etc/network/interface should look like;

auto eth0
iface eth0 inet static
address 192.0.2.7
netmask 255.255.255.0
gateway 192.0.2.254

but under defaul raspbian it looks like;

iface eth0 inet manual

In order to get static ip on a raspbian these days you need to edit /etc/dhcpcd.conf. And you need to put in the top of the file.


interface eth0
static ip_address=192.0.2.7/24
static routers=192.0.2.254
static

And a even funnier, if you have no link on the interface, it will not have an IP! This is just plain stupid.

Leave a Comments