5

I was doing some searching to find out how to manually specify the IP address in my Raspberry Pis because like everything else on the Pi/Linux I could not use intuition or experience to figure it out. I was searching for instructions in general, but I am working on the wired adapter.

I found these two articles, and almost everyone said that manually setting the Pis IP address was a bad idea, which seems odd to me.

Setting up static ip address on Raspian jessie

How do I set up networking/WiFi/static IP address?

I work with embedded systems and help people set up networks of embedded devices and we frequently use static IP addresses so they can be kept track of in a spreadsheet.

Why would manually setting IP addresses for Raspberry Pis be the wrong step?

I saw mentions that you should use a DHCP reservation instead and/or use zerconf tools like avahi. I don't see those as a comparable solution, but a way to address other issues and potentially mitigate a learning curve. The first problem with DHCP reservations is if you start to tinker with your router (eg go from stock to OpenWRT), the rules disappear.

YetAnotherRandomUser
  • 1,120
  • 2
  • 11
  • 34

1 Answers1

10

I was the author of one of the articles you mentioned (which I wrote in sheer frustration at the number of questions about setting up networking).

There are a few objections to static IP addresses.

  1. You have to reconfigure the Pi every time you move it to a new network. This is despite the fact that almost every network/router has a DHCP server to do this automatically. In contrast I can take my Pi with me and plug it into almost any network or computer and it just works.

  2. Most of the people who ask DO NOT UNDERSTAND networking, and get it wrong. Even those who do understand the principles of IP addressing often do not know how to set it up (i.e. which files to modify and which services to disable).

  3. The most common reasons for using static IP addresses is so that people have a "known" address. There is actually nothing wrong with this (I use address reservation myself, because it simplifies stored known_hosts). Again, this is unnecessary as most modern computers support zero-conf.

  4. There are valid reasons for using static IP addresses e.g. running a DHCP server or logically separate networks.

Lastly, the use of static IP addresses is a kind of Pi disease. You don't see Windows or Mac users wanting to set static IP addresses.

Milliways
  • 62,573
  • 32
  • 113
  • 225